Skip to content

Commit

Permalink
fixes for ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Aug 21, 2024
1 parent d280d03 commit ca31a10
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ module = "astor"
ignore_missing_imports = true

[tool.ruff]
line-length = 141
target-version = "py37"
exclude = ["build/**"]

[tool.ruff.lint]
extend-select = [
"C9",
"I",
Expand All @@ -71,18 +76,16 @@ extend-select = [
extend-ignore = [
"S101",
]
line-length = 141
target-version = "py37"

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 22

[tool.ruff.pylint]
[tool.ruff.lint.pylint]
max-args = 7
max-branches = 18
max-statements = 67

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"test/*" = ["I", "S"]
"test/integration/*" = [
"F523",
Expand All @@ -93,3 +96,5 @@ max-statements = 67
"test/test_lexer.py" = ["F841"]
"test/test_pyproject.py" = ["E712"]
"test/test_styles.py" = ["S311"]
"**/tests/*" = ["S101", "ANN"]
"**/__init__.py" = ["F401"]

0 comments on commit ca31a10

Please sign in to comment.