Skip to content

Commit

Permalink
add ruff rules
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed May 15, 2024
1 parent e35584d commit 94cff27
Showing 1 changed file with 26 additions and 16 deletions.
42 changes: 26 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,32 @@ src = ["subliminal", "tests"]
[tool.ruff.lint]
pydocstyle = { convention = "pep257" }
select = [
"E", # style errors
"F", # flakes
"W", # warnings
"D", # pydocstyle
"D417", # Missing argument descriptions in Docstrings
"I", # isort
"UP", # pyupgrade
"S", # bandit
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"A001", # flake8-builtins
"TCH", # flake8-typecheck
"TID", # flake8-tidy-imports
"RUF", # ruff-specific rules
"ISC", # flake8-implicit-str-concat
"PT", # flake8-pytest-style
"E", # style errors
"F", # flakes
"W", # warnings
"D", # pydocstyle
"D417", # Missing argument descriptions in Docstrings
"I", # isort
"UP", # pyupgrade
"S", # bandit
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"TCH", # flake8-typecheck
"TID", # flake8-tidy-imports
"RUF", # ruff-specific rules
"ISC", # flake8-implicit-str-concat
"PT", # flake8-pytest-style
"FA", # flake8-future-annotations
"BLE", # flake8-blind-except
"RET", # flake8-return
"SIM", # flake8-simplify
"DTZ", # flake8-datetimez
"A", # flake8-builtins
"FBT", # flake8-boolean-trap
"ANN2", # flake8-annotations
"ANN001",
"ASYNC", # flake8-async
"TRY", # tryceratops
]
ignore = [
"D401", # First line should be in imperative mood
Expand Down

0 comments on commit 94cff27

Please sign in to comment.