Skip to content

Commit f6e9a89

Browse files
renovate[bot]autofix-ci[bot]CarrotManMatt
authored
Lock file maintenance (#834)
* Lock file maintenance * [autofix.ci] apply automated fixes * Remove invalid pre-commit config argument * Update dependencies and fix security recommendations * Switch to builtin prek hooks where possible Signed-off-by: Matt Norton <matt@carrotmanmatt.com> * Update dependencies again * Fix link format in README.md according to PyMarkdown --------- Signed-off-by: Matt Norton <matt@carrotmanmatt.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Matt Norton <matt@carrotmanmatt.com>
1 parent 49a803b commit f6e9a89

5 files changed

Lines changed: 369 additions & 368 deletions

File tree

‎.github/workflows/check-build-deploy.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
pre-commit-PUSH: # yamllint disable-line rule:key-ordering
130130
if: github.event_name == 'push'
131131
name: Verify pre-commit hooks (push)
132-
uses: ./.github/workflows/autofix-pre-commit.yaml
132+
uses: $/.github/workflows/autofix-pre-commit.yaml
133133
with:
134134
skip-autofix: true
135135

‎.pre-commit-config.yaml‎

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default_stages: [pre-commit, pre-merge-commit, manual]
55

66
repos:
77
- repo: https://github.com/astral-sh/uv-pre-commit
8-
rev: 0.11.29
8+
rev: 0.12.13
99
hooks:
1010
- id: uv-lock
1111
always_run: true
@@ -21,7 +21,7 @@ repos:
2121
- id: codespell
2222

2323
- repo: https://github.com/tombi-toml/tombi-pre-commit
24-
rev: v1.2.0
24+
rev: v1.5.5
2525
hooks:
2626
- exclude: \A.+\.lock\Z
2727
id: tombi-format
@@ -32,15 +32,14 @@ repos:
3232
hooks:
3333
- id: sync-with-uv
3434

35-
- repo: https://github.com/rhysd/actionlint
36-
rev: v1.7.12
35+
- repo: https://github.com/kjanat/actionlint
36+
rev: v1.17.0
3737
hooks:
38-
- id: actionlint
39-
additional_dependencies: [github.com/wasilibs/go-shellcheck/cmd/shellcheck@latest] # yamllint disable-line rule:key-ordering
38+
- id: actionlint-shellcheck
4039
args: [-pyflakes=]
4140

4241
- repo: https://github.com/zizmorcore/zizmor-pre-commit
43-
rev: v1.27.0
42+
rev: v1.30.1
4443
hooks:
4544
- id: zizmor
4645
args: [--no-progress, --fix, --persona=auditor]
@@ -52,7 +51,7 @@ repos:
5251
args: [fix, --no-backup]
5352

5453
- repo: https://github.com/hadolint/hadolint
55-
rev: v2.14.0
54+
rev: v2.15.1
5655
hooks:
5756
- id: hadolint-docker
5857

@@ -63,14 +62,14 @@ repos:
6362
args: [--strict]
6463

6564
- repo: https://github.com/renovatebot/pre-commit-hooks
66-
rev: 43.265.3
65+
rev: 44.90.1
6766
hooks:
6867
- id: renovate-config-validator
6968
args: [--strict]
7069
stages: [manual]
7170

7271
- repo: https://github.com/python-jsonschema/check-jsonschema
73-
rev: 0.37.4
72+
rev: 0.38.0
7473
hooks:
7574
- id: check-jsonschema
7675
args: [--schemafile, 'https://json.schemastore.org/yamllint.json'] # yamllint disable-line rule:quoted-strings
@@ -84,26 +83,18 @@ repos:
8483
- id: gitlint
8584
- id: gitlint-ci
8685

87-
- repo: https://github.com/pre-commit/pre-commit-hooks
88-
rev: v6.0.0
89-
hooks:
90-
- id: check-illegal-windows-names
91-
- id: check-shebang-scripts-are-executable
92-
- id: check-vcs-permalinks
93-
- id: destroyed-symlinks
94-
- id: check-case-conflict
95-
- id: name-tests-test
96-
args: [--pytest-test-first]
97-
files: (?:^|\/)tests\/(?:[^\/]+\/)*(?!_)[^\/]+\.py$ # yamllint disable-line rule:key-ordering
98-
- id: pretty-format-json
99-
args: [--autofix, --indent, "4"]
100-
10186
- repo: builtin
10287
hooks:
88+
- id: check-case-conflict
89+
- id: destroyed-symlinks
90+
- id: check-vcs-permalinks
10391
- id: check-added-large-files
92+
- id: check-illegal-windows-names
93+
- id: check-shebang-scripts-are-executable
10494
- id: trailing-whitespace
10595
- id: check-executables-have-shebangs
10696
- id: check-json
97+
- id: check-jsonc
10798
- id: check-toml
10899
- id: check-yaml
109100
- id: end-of-file-fixer
@@ -114,7 +105,15 @@ repos:
114105
args: [--fix=lf]
115106
- id: detect-private-key
116107
- id: fix-byte-order-marker
117-
args: [-h]
108+
- id: pretty-format-json
109+
args: [--autofix, --indent, "4"]
110+
- id: require-filename-pattern
111+
files: (^|/)tests/.+\.py$ # yamllint disable-line rule:key-ordering
112+
args:
113+
- ^test_.*\.py$
114+
- ^__init__\.py$
115+
- ^conftest\.py$
116+
- ^_.*\.py$
118117

119118
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
120119
rev: v2.16.0
@@ -123,7 +122,7 @@ repos:
123122
args: [--autofix]
124123

125124
- repo: https://github.com/astral-sh/ruff-pre-commit
126-
rev: v0.15.22
125+
rev: v0.16.7
127126
hooks:
128127
- id: ruff-check
129128
args: [--fix]

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ The conditions for each [task](https://docs.pycord.dev/en/stable/ext/tasks) are
120120

121121
The only supported way to deploy TeX-Bot in production is by using our pre-built [docker container](https://docs.docker.com/resources/what-container).
122122
It is can be pulled from the [GitHub Container Registry](https://docs.github.com/packages/working-with-a-github-packages-registry/working-with-the-container-registry) with this identifier: [`ghcr.io/CSSUoB/tex-bot-py-v2:latest`](https://github.com/CSSUoB/TeX-Bot-Py-V2/pkgs/container/tex-bot-py-v2).
123-
(An introduction on how to use a [docker-compose deployment](https://docs.docker.com/compose) can be found [here](https://docs.docker.com/get-started/08_using_compose).)
123+
([Here is an introduction](https://docs.docker.com/get-started/08_using_compose) on how to use a [docker-compose deployment](https://docs.docker.com/compose).)
124124
See [**Versioning**](#versioning) for the full list of available version tags for each release.
125125

126126
Before running the [container](https://docs.docker.com/resources/what-container), some [environment variables](https://wikipedia.org/wiki/Environment_variable) will need to be set.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ main = [
2727
"typed_classproperties>=1.2",
2828
"validators>=0.34"
2929
]
30-
pre-commit = ["prek>=0.3.1"]
30+
pre-commit = ["prek>=0.5.3"]
3131
test = ["pytest>=9", "pytest-cov>=6.1"]
3232
type-check = [
3333
"django-stubs[compatible-mypy]>=5.1",

0 commit comments

Comments
 (0)