Skip to content

Commit

Permalink
Fix ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
acockburn committed Feb 7, 2025
1 parent 96da7b5 commit 71ac499
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ line-length = 120

[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F"]
ignore = []
lint.select = ["E", "F"]
lint.ignore = []

# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["E", "F", "UP"]
unfixable = []
lint.fixable = ["E", "F", "UP"]
lint.unfixable = []

src = ["appdaemon"]

Expand All @@ -135,16 +135,16 @@ exclude = [
"node_modules",
"venv",
]
per-file-ignores = {}
lint.per-file-ignores = {}

line-length = 500

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

# Assume Python 3.10.
target-version = "py310"

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10

0 comments on commit 71ac499

Please sign in to comment.