Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#223)
Browse files Browse the repository at this point in the history
Co-authored-by: Sorin Sbarnea <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and ssbarnea authored Sep 3, 2024
1 parent 2b16496 commit 06c50a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ ci:
- deps
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.9
rev: v0.6.3
hooks:
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
- repo: https://github.com/pycontribs/mirrors-prettier
rev: v3.3.2
rev: v3.3.3
hooks:
- id: prettier
always_run: true
Expand All @@ -21,7 +21,7 @@ repos:
- prettier-plugin-toml
- prettier-plugin-sort-json
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.8.2
rev: v8.13.3
hooks:
- id: cspell
# entry: codespell --relative
Expand All @@ -32,7 +32,7 @@ repos:
hooks:
- id: markdownlint
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black
args:
Expand All @@ -49,7 +49,7 @@ repos:
- id: debug-statements
language_version: python3
- repo: https://github.com/ansible/ansible-lint
rev: v24.6.0
rev: v24.7.0
hooks:
- id: ansible-lint
args: [--fix]
Expand All @@ -63,7 +63,7 @@ repos:
- yaml
entry: yamllint --strict
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.11.2
hooks:
- id: mypy
args: [--python-version, "3.10"]
Expand All @@ -79,7 +79,7 @@ repos:
- typer-config
- typer>=0.12.2
- repo: https://github.com/pycqa/pylint
rev: v3.2.3
rev: v3.2.7
hooks:
- id: pylint
additional_dependencies:
Expand Down
8 changes: 4 additions & 4 deletions src/mk/pre.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ def drafts() -> None:
"""Pre helps you chain releases on github."""
for repo in app.repos:
repo_link = f"[markdown.link][link=https://github.com/{repo}]{repo}[/][/]"
result = run(
result = run( # noqa: S602
f'gh api repos/{repo}/releases --jq "[.[] | select(.draft)"]',
text=True,
shell=True, # noqa: S602
shell=True,
capture_output=True,
check=True,
)
Expand Down Expand Up @@ -104,10 +104,10 @@ def alerts() -> None:
cmd = "GH_PAGER= gh "
cmd += f"api /repos/{repo}/dependabot/alerts"
cmd += " --jq='.[] | select(.state!=\"fixed\") | .html_url'"
result = run(
result = run( # noqa: S602
cmd,
text=True,
shell=True, # noqa: S602
shell=True,
capture_output=True,
check=False,
)
Expand Down
2 changes: 1 addition & 1 deletion src/mk/tools/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def actions(self) -> list[Action]:
msg = "Makefile not found"
raise RuntimeError(msg)
with open(self.makefile, encoding="utf-8") as file:
for line in file.readlines():
for line in file:
# Current implementation assumes that descriptions are added
# using double ## after the target name.
# Inspired by https://github.com/containers/podman/blob/master/Makefile#L127
Expand Down

0 comments on commit 06c50a2

Please sign in to comment.