Skip to content

Commit

Permalink
build: pyproject ruff migration
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Oct 14, 2024
1 parent 9b30298 commit 0178b34
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ pretty = true

[tool.ruff]
line-length = 90
extend-exclude = ['docs']
target-version = "py311"

[tool.ruff.lint]
select = [
"A", # Flake8-builtins
# "ANN", # Flake8-Annotations
Expand Down Expand Up @@ -209,24 +213,22 @@ ignore = [
"SLF001", # Private member accessed
"TRY003", # Avoid specifying long messages outside the exception class
]
extend-exclude = ['docs']
target-version = "py311"

[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"

[tool.ruff.format]
# Enable preview style formatting.
preview = true

[tool.ruff.isort]
[tool.ruff.lint.isort]
lines-after-imports = 2
lines-between-types = 1
# lines-between-types = 1
# atomic = true
force-sort-within-sections = true
combine-as-imports = true

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "I001"]

[tool.black]
Expand Down

0 comments on commit 0178b34

Please sign in to comment.