Skip to content

Commit dfe3356

Browse files
authored
Enable ruff check E303 (#23155)
This rule was lost in the recent switch from flake8. This change brings back that rule which is currently in preview in ruff. See #23139 (comment)
1 parent d19c162 commit dfe3356

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: .circleci/config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ jobs:
425425
- checkout
426426
- pip-install
427427
- run: ruff check
428+
# TODO (cclauss): When ruff supports rule E303 without --preview, remove following line
429+
- run: ruff check --preview --select=E303
428430
mypy:
429431
executor: bionic
430432
steps:

Diff for: pyproject.toml

-3
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,8 @@ lint.ignore = [
4949
"PLW1510",
5050
"PLW2901",
5151
]
52-
5352
lint.per-file-ignores."emrun.py" = [ "PLE0704" ]
54-
5553
lint.mccabe.max-complexity = 48 # Recommended: 10
56-
5754
lint.pylint.allow-magic-value-types = [
5855
"bytes",
5956
"float",

0 commit comments

Comments
 (0)