mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Update the pre-commit hooks
Some checks failed
checkrefs / lfscheck (push) Has been cancelled
checkrefs / checkrefs (push) Has been cancelled
lint / cppcheck (push) Has been cancelled
lint / copyright (push) Has been cancelled
lint / jenkinsfiles (push) Has been cancelled
pre-commit / build (push) Has been cancelled
Some checks failed
checkrefs / lfscheck (push) Has been cancelled
checkrefs / checkrefs (push) Has been cancelled
lint / cppcheck (push) Has been cancelled
lint / copyright (push) Has been cancelled
lint / jenkinsfiles (push) Has been cancelled
pre-commit / build (push) Has been cancelled
This commit is contained in:
parent
dcb7cef308
commit
865ca4cd55
3 changed files with 7 additions and 6 deletions
|
|
@ -34,7 +34,7 @@ repos:
|
||||||
\.patch$
|
\.patch$
|
||||||
)
|
)
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.12.9
|
rev: v0.16.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff-check
|
- id: ruff-check
|
||||||
args:
|
args:
|
||||||
|
|
@ -56,7 +56,7 @@ repos:
|
||||||
files: ^binaries/
|
files: ^binaries/
|
||||||
exclude: (^binaries/data/mods/(mod|public)/art/.*\.xml|\.dae$)
|
exclude: (^binaries/data/mods/(mod|public)/art/.*\.xml|\.dae$)
|
||||||
- repo: https://github.com/scop/pre-commit-shfmt
|
- repo: https://github.com/scop/pre-commit-shfmt
|
||||||
rev: v3.12.0-2
|
rev: v3.13.1-1
|
||||||
hooks:
|
hooks:
|
||||||
- id: shfmt
|
- id: shfmt
|
||||||
args:
|
args:
|
||||||
|
|
@ -67,7 +67,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: shellcheck
|
- id: shellcheck
|
||||||
- repo: https://github.com/igorshubovych/markdownlint-cli
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||||
rev: v0.45.0
|
rev: v0.47.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: markdownlint
|
- id: markdownlint
|
||||||
language_version: 22.14.0
|
language_version: 22.14.0
|
||||||
|
|
@ -77,13 +77,13 @@ repos:
|
||||||
^source/third_party/
|
^source/third_party/
|
||||||
)
|
)
|
||||||
- repo: https://github.com/adrienverge/yamllint
|
- repo: https://github.com/adrienverge/yamllint
|
||||||
rev: v1.37.1
|
rev: v1.38.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: yamllint
|
- id: yamllint
|
||||||
args:
|
args:
|
||||||
- --strict
|
- --strict
|
||||||
- repo: https://github.com/eslint/eslint
|
- repo: https://github.com/eslint/eslint
|
||||||
rev: v9.39.2
|
rev: v10.8.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: eslint
|
- id: eslint
|
||||||
language_version: 22.14.0
|
language_version: 22.14.0
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ ignore = [
|
||||||
"ANN",
|
"ANN",
|
||||||
"C90",
|
"C90",
|
||||||
"COM812",
|
"COM812",
|
||||||
|
"CPY001",
|
||||||
"D10",
|
"D10",
|
||||||
"EM",
|
"EM",
|
||||||
"FIX002",
|
"FIX002",
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,7 @@ class CheckRefs:
|
||||||
(version,) = unpack(int_fmt, f.read(int_len))
|
(version,) = unpack(int_fmt, f.read(int_len))
|
||||||
if version != 7:
|
if version != 7:
|
||||||
raise ValueError(f"Invalid PMP version ({version}) in '{ffp}'")
|
raise ValueError(f"Invalid PMP version ({version}) in '{ffp}'")
|
||||||
(datasize,) = unpack(int_fmt, f.read(int_len))
|
(datasize,) = unpack(int_fmt, f.read(int_len)) # noqa: RUF059
|
||||||
(mapsize,) = unpack(int_fmt, f.read(int_len))
|
(mapsize,) = unpack(int_fmt, f.read(int_len))
|
||||||
f.seek(2 * (mapsize * 16 + 1) * (mapsize * 16 + 1), 1) # skip heightmap
|
f.seek(2 * (mapsize * 16 + 1) * (mapsize * 16 + 1), 1) # skip heightmap
|
||||||
(numtexs,) = unpack(int_fmt, f.read(int_len))
|
(numtexs,) = unpack(int_fmt, f.read(int_len))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue