Skip to content

Commit

Permalink
chore: Update ruff config names (DjangoGirls#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb authored Feb 5, 2024
1 parent 303ec29 commit 8be1503
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.ruff]
# https://beta.ruff.rs/docs/configuration/
line-length = 120
select = [
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
Expand Down Expand Up @@ -38,7 +38,7 @@ extend-exclude = [
"venv",
]

extend-ignore = [
lint.extend-ignore = [
"B006", # Do not use mutable data structures for argument defaults
"B011", # tests use assert False
"B019", # Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks
Expand All @@ -58,15 +58,18 @@ extend-ignore = [
"SIM102", # Use a single `if` statement instead of nested `if` statements
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401" # unused-import
]
"djangogirls/urls.py" = [
"RUF005" # Consider iterable unpacking instead of concatenation
]
"tests/core/test_admin.py" = [
"RUF017" # Avoid quadratic list summation
]

[tool.ruff.isort]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = [
"applications",
Expand Down

0 comments on commit 8be1503

Please sign in to comment.