Skip to content

Commit

Permalink
chore: ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb committed Jan 11, 2024
1 parent 942c54b commit 6e4e37c
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[tool.ruff]
# https://beta.ruff.rs/docs/configuration/
line-length = 120
select = [
"Q000"
# "E", # pycodestyle errors
# "W", # pycodestyle warnings
# "F", # pyflakes
# "I", # isort
# "C", # flake8-comprehensions
# "B", # flake8-bugbear
# "Q", # flake8-quotes
# "PLE", # pylint error
# "PLR", # pylint refactor
# "PLW", # pylint warning
# "UP", # pyupgrade
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"Q", # flake8-quotes
"PLE", # pylint error
"PLR", # pylint refactor
"PLW", # pylint warning
"UP", # pyupgrade
]

extend-exclude = [
Expand All @@ -22,10 +22,9 @@ extend-exclude = [
"**migrations/**",
]

#ignore = [
# "B006", # Do not use mutable data structures for argument defaults
# "PLR0913", # Too many arguments to function call,
#]
ignore = [
"I001", # Import block is un-sorted or un-formatted (would be nice not to do this)
]

[tool.ruff.per-file-ignores]
"__init__.py" = [
Expand All @@ -34,6 +33,9 @@ extend-exclude = [

[tool.ruff.isort]
combine-as-imports = true
known-first-party = [
"explorer",
]

[tool.ruff.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
Expand Down

0 comments on commit 6e4e37c

Please sign in to comment.