Skip to content

Commit 06c50a2

Browse files
[pre-commit.ci] pre-commit autoupdate (#223)
Co-authored-by: Sorin Sbarnea <[email protected]>
1 parent 2b16496 commit 06c50a2

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.pre-commit-config.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ ci:
55
- deps
66
repos:
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: v0.4.9
8+
rev: v0.6.3
99
hooks:
1010
- id: ruff
1111
args:
1212
- --fix
1313
- --exit-non-zero-on-fix
1414
- repo: https://github.com/pycontribs/mirrors-prettier
15-
rev: v3.3.2
15+
rev: v3.3.3
1616
hooks:
1717
- id: prettier
1818
always_run: true
@@ -21,7 +21,7 @@ repos:
2121
- prettier-plugin-toml
2222
- prettier-plugin-sort-json
2323
- repo: https://github.com/streetsidesoftware/cspell-cli
24-
rev: v8.8.2
24+
rev: v8.13.3
2525
hooks:
2626
- id: cspell
2727
# entry: codespell --relative
@@ -32,7 +32,7 @@ repos:
3232
hooks:
3333
- id: markdownlint
3434
- repo: https://github.com/psf/black
35-
rev: 24.4.2
35+
rev: 24.8.0
3636
hooks:
3737
- id: black
3838
args:
@@ -49,7 +49,7 @@ repos:
4949
- id: debug-statements
5050
language_version: python3
5151
- repo: https://github.com/ansible/ansible-lint
52-
rev: v24.6.0
52+
rev: v24.7.0
5353
hooks:
5454
- id: ansible-lint
5555
args: [--fix]
@@ -63,7 +63,7 @@ repos:
6363
- yaml
6464
entry: yamllint --strict
6565
- repo: https://github.com/pre-commit/mirrors-mypy
66-
rev: v1.10.0
66+
rev: v1.11.2
6767
hooks:
6868
- id: mypy
6969
args: [--python-version, "3.10"]
@@ -79,7 +79,7 @@ repos:
7979
- typer-config
8080
- typer>=0.12.2
8181
- repo: https://github.com/pycqa/pylint
82-
rev: v3.2.3
82+
rev: v3.2.7
8383
hooks:
8484
- id: pylint
8585
additional_dependencies:

src/mk/pre.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ def drafts() -> None:
4646
"""Pre helps you chain releases on github."""
4747
for repo in app.repos:
4848
repo_link = f"[markdown.link][link=https://github.com/{repo}]{repo}[/][/]"
49-
result = run(
49+
result = run( # noqa: S602
5050
f'gh api repos/{repo}/releases --jq "[.[] | select(.draft)"]',
5151
text=True,
52-
shell=True, # noqa: S602
52+
shell=True,
5353
capture_output=True,
5454
check=True,
5555
)
@@ -104,10 +104,10 @@ def alerts() -> None:
104104
cmd = "GH_PAGER= gh "
105105
cmd += f"api /repos/{repo}/dependabot/alerts"
106106
cmd += " --jq='.[] | select(.state!=\"fixed\") | .html_url'"
107-
result = run(
107+
result = run( # noqa: S602
108108
cmd,
109109
text=True,
110-
shell=True, # noqa: S602
110+
shell=True,
111111
capture_output=True,
112112
check=False,
113113
)

src/mk/tools/make.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def actions(self) -> list[Action]:
3535
msg = "Makefile not found"
3636
raise RuntimeError(msg)
3737
with open(self.makefile, encoding="utf-8") as file:
38-
for line in file.readlines():
38+
for line in file:
3939
# Current implementation assumes that descriptions are added
4040
# using double ## after the target name.
4141
# Inspired by https://github.com/containers/podman/blob/master/Makefile#L127

0 commit comments

Comments
 (0)