Skip to content

Commit eb9d772

Browse files
📈 Update versions for pre-commit hooks (#231)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6f54d41 commit eb9d772

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
- id: trailing-whitespace
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: "v0.11.13"
21+
rev: "v0.12.2"
2222
hooks:
2323
- id: ruff
2424
args: ["--fix", "--show-fixes"]
@@ -38,14 +38,14 @@ repos:
3838
args: ["--skip=CODE_OF_CONDUCT.md"]
3939

4040
- repo: https://github.com/rbubley/mirrors-prettier
41-
rev: "v3.5.3"
41+
rev: "v3.6.2"
4242
hooks:
4343
- id: prettier
4444
files: \.(html|md|toml|yml|yaml)
4545
args: [--prose-wrap=preserve]
4646

4747
- repo: https://github.com/woodruffw/zizmor-pre-commit
48-
rev: "v1.9.0"
48+
rev: "v1.11.0"
4949
hooks:
5050
- id: zizmor
5151
args: ["--pedantic"]

hugo/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def __call():
6363
if sysplatform == "win32":
6464
from subprocess import check_call
6565

66-
check_call([HUGO_EXECUTABLE] + sysargv[1:])
66+
check_call([HUGO_EXECUTABLE, *sysargv[1:]])
6767
else:
68-
os.execv(HUGO_EXECUTABLE, ["hugo"] + sysargv[1:])
68+
os.execv(HUGO_EXECUTABLE, ["hugo", *sysargv[1:]])
6969

7070

7171
if __name__ == "__main__":

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ lint.ignore = [
8282
"PLR09", # Too many <...>
8383
"PLR2004", # Magic value used in comparison
8484
"ISC001", # Conflicts with formatter
85+
"PLC0415", # Import should be at the top-level of a file
8586
]
8687

8788
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)