Commit 540d168
authored
Expand python format CI check to all code but third-party (#28437)
Expand python formatting check CI workflow (which uses `black`) to the
entire repo except `third-party/` and `test/`, and `black`en all
affected files once to begin with.
Also:
- Manually run `2to3` on files that `black` failed to process (as a
one-off), which was due to them being written for Python 2.
- Set `black` CI check to use latest available (currently `26.1.0`,
previously pinned to `24.4.0`).
- Add `push` workflow trigger so this runs on pushes to `main`.
[reviewed by @DanilaFe, thanks!]
Testing:
- [x] CI check passes
- [x] CI check fails on incorrectly formatted python files
- [x] paratest90 files changed
Lines changed: 11372 additions & 7976 deletions
File tree
- .github/workflows
- compiler/etc
- doc
- rst
- developer/chips
- util
- runtime/etc/debug
- tools
- c2chapel
- chapel-py/src/chapel
- lsp
- replace
- chpldoc
- util
- buildRelease
- build_configs
- cray-internal
- chplenv
- config
- cron
- devel
- deprecationScript
- llvm
- misc/gen-LAPACK/extern-tool
- packaging
- apt/common
- common
- rpm/common
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 3 | + | |
10 | 4 | | |
11 | 5 | | |
12 | 6 | | |
| |||
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | | - | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments