File tree 3 files changed +12
-12
lines changed
3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 5
5
- deps
6
6
repos :
7
7
- repo : https://github.com/astral-sh/ruff-pre-commit
8
- rev : v0.4.9
8
+ rev : v0.6.3
9
9
hooks :
10
10
- id : ruff
11
11
args :
12
12
- --fix
13
13
- --exit-non-zero-on-fix
14
14
- repo : https://github.com/pycontribs/mirrors-prettier
15
- rev : v3.3.2
15
+ rev : v3.3.3
16
16
hooks :
17
17
- id : prettier
18
18
always_run : true
21
21
- prettier-plugin-toml
22
22
- prettier-plugin-sort-json
23
23
- repo : https://github.com/streetsidesoftware/cspell-cli
24
- rev : v8.8.2
24
+ rev : v8.13.3
25
25
hooks :
26
26
- id : cspell
27
27
# entry: codespell --relative
32
32
hooks :
33
33
- id : markdownlint
34
34
- repo : https://github.com/psf/black
35
- rev : 24.4.2
35
+ rev : 24.8.0
36
36
hooks :
37
37
- id : black
38
38
args :
49
49
- id : debug-statements
50
50
language_version : python3
51
51
- repo : https://github.com/ansible/ansible-lint
52
- rev : v24.6 .0
52
+ rev : v24.7 .0
53
53
hooks :
54
54
- id : ansible-lint
55
55
args : [--fix]
63
63
- yaml
64
64
entry : yamllint --strict
65
65
- repo : https://github.com/pre-commit/mirrors-mypy
66
- rev : v1.10.0
66
+ rev : v1.11.2
67
67
hooks :
68
68
- id : mypy
69
69
args : [--python-version, "3.10"]
79
79
- typer-config
80
80
- typer>=0.12.2
81
81
- repo : https://github.com/pycqa/pylint
82
- rev : v3.2.3
82
+ rev : v3.2.7
83
83
hooks :
84
84
- id : pylint
85
85
additional_dependencies :
Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ def drafts() -> None:
46
46
"""Pre helps you chain releases on github."""
47
47
for repo in app .repos :
48
48
repo_link = f"[markdown.link][link=https://github.com/{ repo } ]{ repo } [/][/]"
49
- result = run (
49
+ result = run ( # noqa: S602
50
50
f'gh api repos/{ repo } /releases --jq "[.[] | select(.draft)"]' ,
51
51
text = True ,
52
- shell = True , # noqa: S602
52
+ shell = True ,
53
53
capture_output = True ,
54
54
check = True ,
55
55
)
@@ -104,10 +104,10 @@ def alerts() -> None:
104
104
cmd = "GH_PAGER= gh "
105
105
cmd += f"api /repos/{ repo } /dependabot/alerts"
106
106
cmd += " --jq='.[] | select(.state!=\" fixed\" ) | .html_url'"
107
- result = run (
107
+ result = run ( # noqa: S602
108
108
cmd ,
109
109
text = True ,
110
- shell = True , # noqa: S602
110
+ shell = True ,
111
111
capture_output = True ,
112
112
check = False ,
113
113
)
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def actions(self) -> list[Action]:
35
35
msg = "Makefile not found"
36
36
raise RuntimeError (msg )
37
37
with open (self .makefile , encoding = "utf-8" ) as file :
38
- for line in file . readlines () :
38
+ for line in file :
39
39
# Current implementation assumes that descriptions are added
40
40
# using double ## after the target name.
41
41
# Inspired by https://github.com/containers/podman/blob/master/Makefile#L127
You can’t perform that action at this time.
0 commit comments