Skip to content

Commit

Permalink
Enable ruff's custom rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike committed Jul 16, 2023
1 parent 0d6f0f4 commit 1c5cc62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ select = [
"FA", # flake8-future-annotations
"TID", # flake8-tidy-imports
"UP007", # flake8-new-union-types equivalent rule
"RUF", # ruff's custom rules
]

ignore = [
Expand All @@ -115,6 +116,7 @@ ignore = [
"ANN102", # Missing type annotation for cls in classmethod
"ANN204", # Missing return type annotation for special method
"B904", # Exception raised within try-except should use raise ... from exc
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]

[tool.ruff.extend-per-file-ignores]
Expand Down

0 comments on commit 1c5cc62

Please sign in to comment.