Skip to content

Commit

Permalink
style: Further config Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-sadeghi committed Aug 9, 2024
1 parent e170ecc commit 9c90915
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ target-version = "py310"
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F", "W"]
select = ["E4", "E7", "E9", "F", "W", "E2"]
extend-select = ["I"]
ignore = ["E731"]
ignore = ["E731", "F841", "E226"]
preview = true

# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
Expand Down Expand Up @@ -79,4 +80,6 @@ docstring-code-line-length = "dynamic"

[lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "I001"]
"_gdd.py" = ["ALL"]
"test/**" = ["F841"]
"test_snow2.py" = ["E241"]

0 comments on commit 9c90915

Please sign in to comment.