Skip to content

Commit

Permalink
Keep GitHub Actions up to date with GitHub's Dependabot (#51)
Browse files Browse the repository at this point in the history
* Keep GitHub Actions up to date with GitHub's Dependabot

* ruff --output-format=github .

* tool.ruff.lint...

* pytest<8.0.0

* pytest<7.0.0

* Update pyproject.toml

* Update pyproject.toml
  • Loading branch information
cclauss committed Feb 18, 2024
1 parent 0ad2a5d commit b4ea0c0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
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"]

0 comments on commit b4ea0c0

Please sign in to comment.