Skip to content

Commit

Permalink
Avoid deprecated Ruff configuration paths
Browse files Browse the repository at this point in the history
These come from the Ruff 0.2.0 release:
https://astral.sh/blog/ruff-v0.2.0#configuration-changes.
  • Loading branch information
Tenzer committed Feb 7, 2024
1 parent 358bf8f commit 73b2298
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.3
rev: v0.2.1
hooks:
- id: ruff
args:
Expand Down
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ build-backend = "poetry.core.masonry.api"

[tool.ruff]
target-version = "py38"

[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
Expand All @@ -53,10 +55,10 @@ ignore = [
"E501", # Line too long
]

[tool.ruff.format]
skip-magic-trailing-comma = true

[tool.ruff.isort]
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
split-on-trailing-comma = false

[tool.ruff.format]
skip-magic-trailing-comma = true

0 comments on commit 73b2298

Please sign in to comment.