Skip to content

Commit b4ea0c0

Browse files
authored
Keep GitHub Actions up to date with GitHub's Dependabot (#51)
* 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
1 parent 0ad2a5d commit b4ea0c0

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Keep GitHub Actions up to date with GitHub's Dependabot...
2+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
3+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
4+
version: 2
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: /
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*" # Group all Actions updates into a single larger pull request
12+
schedule:
13+
interval: weekly

.github/workflows/lint_python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- run: pip install --upgrade pip setuptools wheel
1212
- run: pip install --editable ".[dev]"
1313
- run: codespell .
14-
- run: ruff --format=github .
14+
- run: ruff --output-format=github .
1515
- run: black --check .
1616
- run: mypy .
1717
- run: pytest -vv .

pyproject.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ exclude = ["build/"]
6969
ignore_missing_imports = true
7070

7171
[tool.ruff]
72+
line-length = 88 # Recommended: 88
73+
target-version = "py38"
74+
75+
[tool.ruff.lint]
7276
select = [
7377
"A",
7478
"B",
@@ -96,17 +100,17 @@ select = [
96100
"W",
97101
"YTT",
98102
]
99-
line-length = 88 # Recommended: 88
100-
target-version = "py37"
101103

102-
[tool.ruff.mccabe]
104+
[tool.ruff.lint.mccabe]
103105
max-complexity = 24 # Recommended: 10
104106

105-
[tool.ruff.pylint]
107+
[tool.ruff.lint.pylint]
106108
max-args = 6 # Recommended: 5
107109
max-branches = 25 # Recommended: 12
108110
max-returns = 6 # Recommended: 6
109111
max-statements = 89 # Recommended: 50
110112

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

0 commit comments

Comments
 (0)