Skip to content

Commit

Permalink
chore: Update ruff lint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 16, 2024
1 parent dffbe1c commit 0679035
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,27 @@ target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", "COM", "EM",
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191", "D206", "Q000", "Q001", "Q002", "Q003", "ISC001",
"D203", "D212", # ignore incompatible rules
"D200", "D205", # documentation preferences
"C901", "PLR091", # complexity preferences
"D1", # docstrings
"PTH", # pathlib
"ANN", "C901", "COM812", "D203", "D212", "D415", "EM", "PERF203", "PLR091", "Q000",
"D1", "D205",
"PTH",
"D200", # https://github.com/astral-sh/ruff/issues/6269
]
allowed-confusables = [""]

[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["copyright"]

[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true

[tool.ruff.lint.per-file-ignores]
"docs/conf.py" = ["INP001"] # no __init__.py file
"docs/conf.py" = ["D100", "INP001"]
"tests/*" = [
"D", # docstring
"ARG001", # pytest fixtures
"PLR0913", # Too many arguments
"PLR2004", # Magic value used
"S101", # assert
]
"ARG001", "D", "FBT003", "INP001", "PLR2004", "S", "TRY003",
]
"manage.py" = [
"ARG001", # click
"B028", # warnings
"D301", # click escapes
"TRY003", # errors
]

0 comments on commit 0679035

Please sign in to comment.