Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Keep GitHub Actions up to date with GitHub's Dependabot...
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
version: 2
updates:
- package-ecosystem: github-actions
directory: /
groups:
github-actions:
patterns:
- "*" # Group all Actions updates into a single larger pull request
schedule:
interval: weekly
2 changes: 1 addition & 1 deletion .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- run: pip install --upgrade pip setuptools wheel
- run: pip install --editable ".[dev]"
- run: codespell .
- run: ruff --format=github .
- run: ruff --output-format=github .
- run: black --check .
- run: mypy .
- run: pytest -vv .
Expand Down
14 changes: 9 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ exclude = ["build/"]
ignore_missing_imports = true

[tool.ruff]
line-length = 88 # Recommended: 88
target-version = "py38"

[tool.ruff.lint]
select = [
"A",
"B",
Expand Down Expand Up @@ -96,17 +100,17 @@ select = [
"W",
"YTT",
]
line-length = 88 # Recommended: 88
target-version = "py37"

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 24 # Recommended: 10

[tool.ruff.pylint]
[tool.ruff.lint.pylint]
max-args = 6 # Recommended: 5
max-branches = 25 # Recommended: 12
max-returns = 6 # Recommended: 6
max-statements = 89 # Recommended: 50

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"test/*" = ["C406", "S101", "SIM115"]
"test/_prepare_outputs.py" = ["PLW1510", "S603", "S607"]
"test/test_outputs.py" = ["PLW1510", "S603", "S607"]