Skip to content

Commit

Permalink
Enable ruff check E303 (emscripten-core#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 emscripten-core#23139 (comment)
  • Loading branch information
cclauss authored and hedwigz committed Dec 18, 2024
1 parent 6c4dec6 commit 1ea2e49
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 1ea2e49

Please sign in to comment.