Skip to content

Commit

Permalink
Update lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurio committed May 15, 2024
1 parent 97d5767 commit 618c5c4
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
[tool.black]
line-length = 120

[tool.isort]
profile = "black"
line_length=120
skip_gitignore = true

[tool.flynt]
line-length = 120

Expand Down Expand Up @@ -61,12 +53,27 @@ ignore = [
]

# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F"]
fixable = [
"A",
"B",
"C",
"D",
"E",
"F",
"I",
"SIM",
"UP",
]
unfixable = []

# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

[tool.ruff.lint.isort]
known-first-party = [
"fastapi_filter",
]

[tool.ruff.lint.pydocstyle]
convention = "google"

Expand Down

0 comments on commit 618c5c4

Please sign in to comment.