Skip to content

Commit

Permalink
Update ruff settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Feb 18, 2024
1 parent 3e39aeb commit 3978528
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 @@ -59,9 +59,6 @@ title_format = "{version} ({project_date})"

[tool.ruff]
fix = true
select = [
"E", "F", "W", "C90", "B", "I", "UP", "RUF"
]
exclude = [
"src/pip_deepfreeze/pip-list-json.py",
"src/pip_deepfreeze/env-info-json.py",
Expand All @@ -70,13 +67,18 @@ exclude = [
]
target-version = "py38"

[tool.ruff.per-file-ignores]
[tool.ruff.lint]
select = [
"E", "F", "W", "C90", "B", "I", "UP", "RUF"
]

[tool.ruff.lint.per-file-ignores]
"__main__.py" = ["B008"]

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

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["pip_deepfreeze"]
combine-as-imports = true

Expand Down

0 comments on commit 3978528

Please sign in to comment.