Skip to content

Commit

Permalink
Update ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Jun 18, 2024
1 parent 7aef3c5 commit 30d9f4a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,15 @@ exclude_lines = [
target-version = "py310" # ToDo: Modify according to your needs!
line-length = 120
preview = true # preview features & checks, use with caution
include = ["src/**/*.py", "src/**/*.pyi", "tests/**/*.py", "tests/**/*.pyi"]

[tool.ruff.format]
quote-style = "single" # be more like black

[tool.ruff.lint]
extend-select = [ # features in preview
"W292", # missing-newline-at-end-of-file
]
include = ["src/**/*.py", "src/**/*.pyi", "tests/**/*.py", "tests/**/*.pyi"]
select = [
"A",
"B",
Expand Down Expand Up @@ -192,19 +197,16 @@ unfixable = [
# "F401", # Don't touch unused imports
]

[tool.ruff.format]
quote-style = "single" # be more like black

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

[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"

[tool.ruff.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
# Allow print/pprint
"examples/*" = ["T201"]
# Tests can use magic values, assertions, and relative imports
Expand Down

0 comments on commit 30d9f4a

Please sign in to comment.