Skip to content

Commit

Permalink
Enable ruff check E303 (#23155)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
cclauss authored Dec 14, 2024
1 parent d19c162 commit dfe3356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ jobs:
- checkout
- pip-install
- run: ruff check
# TODO (cclauss): When ruff supports rule E303 without --preview, remove following line
- run: ruff check --preview --select=E303
mypy:
executor: bionic
steps:
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,8 @@ lint.ignore = [
"PLW1510",
"PLW2901",
]

lint.per-file-ignores."emrun.py" = [ "PLE0704" ]

lint.mccabe.max-complexity = 48 # Recommended: 10

lint.pylint.allow-magic-value-types = [
"bytes",
"float",
Expand Down

0 comments on commit dfe3356

Please sign in to comment.