Skip to content

Commit 0f2ae2b

Browse files
committed
add gha-update
1 parent 5353f30 commit 0f2ae2b

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,8 @@ ignore-init-module-imports = true
118118
[tool.ruff.lint.isort]
119119
force-single-line = true
120120
order-by-type = false
121+
122+
[tool.gha-update]
123+
tag-only = [
124+
"slsa-framework/slsa-github-generator",
125+
]

tox.ini

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,26 @@ commands = mypy
3434
deps = -r requirements/docs.txt
3535
commands = sphinx-build -E -W -b dirhtml docs docs/_build/dirhtml
3636

37+
[testenv:update-actions]
38+
labels = update
39+
deps = gha-update
40+
commands = gha-update
41+
42+
[testenv:update-pre_commit]
43+
labels = update
44+
deps = pre-commit
45+
skip_install = true
46+
commands = pre-commit autoupdate -j4
47+
3748
[testenv:update-requirements]
38-
deps =
39-
pip-tools
40-
pre-commit
49+
base_python = 3.12
50+
labels = update
51+
deps = pip-tools
4152
skip_install = true
4253
change_dir = requirements
4354
commands =
44-
pre-commit autoupdate -j4
45-
pip-compile -U build.in
46-
pip-compile -U docs.in
47-
pip-compile -U tests.in
48-
pip-compile -U typing.in
49-
pip-compile -U dev.in
55+
pip-compile build.in -q {posargs:-U}
56+
pip-compile docs.in -q {posargs:-U}
57+
pip-compile tests.in -q {posargs:-U}
58+
pip-compile typing.in -q {posargs:-U}
59+
pip-compile dev.in -q {posargs:-U}

0 commit comments

Comments
 (0)