Skip to content

Commit

Permalink
Update ruff lint configuration
Browse files Browse the repository at this point in the history
ruff changed the location for lint configuration so that the tool could
also support reformatting code. This updates the configuration to the
new schema.
  • Loading branch information
willkg committed Mar 18, 2024
1 parent b41a229 commit 8ab7006
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pyproject.toml
@@ -1,6 +1,13 @@
[tool.ruff]
# Enable pycodestyle (`E`), Pyflakes (`F`), and Bugbear (`B`) codes by default.
line-length = 88

target-version = "py311"

[tool.ruff.lint]
# Enable pycodestyle (`E`), Pyflakes (`F`), and Bugbear (`B`) rules
select = ["E", "F", "B"]

# Ignore line length violations
ignore = ["E501"]

unfixable = ["B"]
Expand All @@ -20,14 +27,9 @@ exclude = [
]
per-file-ignores = {}

line-length = 88

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

# Assume Python 3.11.
target-version = "py311"


[tool.pytest.ini_options]
norecursedirs = [".cache", "__pycache__"]
Expand Down

0 comments on commit 8ab7006

Please sign in to comment.