Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
pre-commit-PUSH: # yamllint disable-line rule:key-ordering
if: github.event_name == 'push'
name: Verify pre-commit hooks (push)
uses: ./.github/workflows/autofix-pre-commit.yaml
uses: $/.github/workflows/autofix-pre-commit.yaml
with:
skip-autofix: true

Expand Down
51 changes: 25 additions & 26 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ default_stages: [pre-commit, pre-merge-commit, manual]

repos:
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.29
rev: 0.12.13
hooks:
- id: uv-lock
always_run: true
Expand All @@ -21,7 +21,7 @@ repos:
- id: codespell

- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v1.2.0
rev: v1.5.5
hooks:
- exclude: \A.+\.lock\Z
id: tombi-format
Expand All @@ -32,15 +32,14 @@ repos:
hooks:
- id: sync-with-uv

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

- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.27.0
rev: v1.30.1
hooks:
- id: zizmor
args: [--no-progress, --fix, --persona=auditor]
Expand All @@ -52,7 +51,7 @@ repos:
args: [fix, --no-backup]

- repo: https://github.com/hadolint/hadolint
rev: v2.14.0
rev: v2.15.1
hooks:
- id: hadolint-docker

Expand All @@ -63,14 +62,14 @@ repos:
args: [--strict]

- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 43.265.3
rev: 44.90.1
hooks:
- id: renovate-config-validator
args: [--strict]
stages: [manual]

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.4
rev: 0.38.0
hooks:
- id: check-jsonschema
args: [--schemafile, 'https://json.schemastore.org/yamllint.json'] # yamllint disable-line rule:quoted-strings
Expand All @@ -84,26 +83,18 @@ repos:
- id: gitlint
- id: gitlint-ci

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-illegal-windows-names
- id: check-shebang-scripts-are-executable
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: check-case-conflict
- id: name-tests-test
args: [--pytest-test-first]
files: (?:^|\/)tests\/(?:[^\/]+\/)*(?!_)[^\/]+\.py$ # yamllint disable-line rule:key-ordering
- id: pretty-format-json
args: [--autofix, --indent, "4"]

- repo: builtin
hooks:
- id: check-case-conflict
- id: destroyed-symlinks
- id: check-vcs-permalinks
- id: check-added-large-files
- id: check-illegal-windows-names
- id: check-shebang-scripts-are-executable
- id: trailing-whitespace
- id: check-executables-have-shebangs
- id: check-json
- id: check-jsonc
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -114,7 +105,15 @@ repos:
args: [--fix=lf]
- id: detect-private-key
- id: fix-byte-order-marker
args: [-h]
- id: pretty-format-json
args: [--autofix, --indent, "4"]
- id: require-filename-pattern
files: (^|/)tests/.+\.py$ # yamllint disable-line rule:key-ordering
args:
- ^test_.*\.py$
- ^__init__\.py$
- ^conftest\.py$
- ^_.*\.py$

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

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.22
rev: v0.16.7
hooks:
- id: ruff-check
args: [--fix]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ The conditions for each [task](https://docs.pycord.dev/en/stable/ext/tasks) are

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).
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).
(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).)
([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).)
See [**Versioning**](#versioning) for the full list of available version tags for each release.

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.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ main = [
"typed_classproperties>=1.2",
"validators>=0.34"
]
pre-commit = ["prek>=0.3.1"]
pre-commit = ["prek>=0.5.3"]
test = ["pytest>=9", "pytest-cov>=6.1"]
type-check = [
"django-stubs[compatible-mypy]>=5.1",
Expand Down
Loading