Commit 23b5b6b
authored
[BE] Update flake8 configuration to ignore E203 for Black compatibility (#7161)
PYFMT and FLAKE8 in test-infra have conflicting setting regarding
whitespace before `:`
see:
https://github.com/pytorch/test-infra/actions/runs/17688919062/job/50279032133?pr=7111#step:5:90
https://github.com/pytorch/test-infra/actions/runs/17687778066/job/50275995128?pr=7111#step:5:87
this disables the check in FLAKE8 but leaves it in PYFMT
### Testing
```
lintrunner
Warning: Could not find a lintrunner config at: '.lintrunner.private.toml'. Continuing without using configuration file.
FLAKE8 success!
TYPEIGNORE success!
MYPY success!
NOQA success!
SPACES success!
NEWLINE success!
TABS success!
PYPIDEP success!
ACTIONLINT success!
EXEC success!
LINTRUNNER_VERSION success!
PYFMT failure
COPYRIGHT success!
RUFF success!
SQLFLUFF success!
SQL_PARAMS success!
RUSTFMT success!
>>> Lint for aws/lambda/pytorch-auto-revert/pytorch_auto_revert/signal_extraction_datasource.py:
Warning (PYFMT) format
Run `lintrunner -a` to apply this patch.
You can run `lintrunner -a` to apply this patch.
153 153 | TEST_FETCH_CHUNK = 1024 # Number of job_ids to fetch per query
154 154 | t0 = time.perf_counter()
155 155 | for start in range(0, total, TEST_FETCH_CHUNK):
155 |- chunk = job_ids[start: start + TEST_FETCH_CHUNK]
156 |+ chunk = job_ids[start : start + TEST_FETCH_CHUNK]
157 157 | batch_idx = start // TEST_FETCH_CHUNK + 1
158 158 | batch_total = (total + TEST_FETCH_CHUNK - 1) // TEST_FETCH_CHUNK
159 159 | log.info(
lintrunner -a
Warning: Could not find a lintrunner config at: '.lintrunner.private.toml'. Continuing without using configuration file.
TYPEIGNORE success!
FLAKE8 success!
MYPY success!
NEWLINE success!
SPACES success!
NOQA success!
PYPIDEP success!
COPYRIGHT success!
TABS success!
ACTIONLINT success!
EXEC success!
LINTRUNNER_VERSION success!
PYFMT success!
RUFF success!
SQLFLUFF success!
SQL_PARAMS success!
RUSTFMT success!
ok No lint issues.
Successfully applied all patches.
```1 parent e804089 commit 23b5b6b
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
0 commit comments