Skip to content

Commit

Permalink
style: Config ruff to check imports by default except in init files
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-sadeghi committed Aug 9, 2024
1 parent 2f45048 commit c19f735
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ target-version = "py310"
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F", "W"]
extend-select = ["I"]
ignore = ["E731"]

# Allow fix for all enabled rules (when `--fix`) is provided.
Expand Down Expand Up @@ -77,5 +78,5 @@ docstring-code-format = true
docstring-code-line-length = "dynamic"

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

0 comments on commit c19f735

Please sign in to comment.