Skip to content

Commit e902cb1

Browse files
authored
build: update pre-commit hooks (#241)
1 parent 2b814fe commit e902cb1

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ repos:
4545
args: [--autofix, --indent, '2']
4646

4747
- repo: https://github.com/python-jsonschema/check-jsonschema
48-
rev: cb3c2be894b151dff143b1baf6acbd55f2b7faed # frozen: 0.30.0
48+
rev: a20fe80ebdd4aec6791598c9ff559985580f91ea # frozen: 0.31.1
4949
hooks:
5050
- id: check-dependabot
5151
- id: check-github-workflows
@@ -56,7 +56,7 @@ repos:
5656
- id: pyproject-fmt
5757

5858
- repo: https://github.com/executablebooks/mdformat
59-
rev: 00812cd1850e41aae5c0916645b4b7404f538e8c # frozen: 0.7.19
59+
rev: ff29be1a1ba8029d9375882aa2c812b62112a593 # frozen: 0.7.22
6060
hooks:
6161
- id: mdformat
6262
args: [--number, --wrap=120, --ignore-missing-references]
@@ -80,14 +80,14 @@ repos:
8080
- ruff==0.6.1
8181

8282
- repo: https://github.com/astral-sh/ruff-pre-commit
83-
rev: 8b76f04e7e5a9cd259e9d1db7799599355f97cdf # frozen: v0.8.2
83+
rev: 871f3bcae4fe473cd7109c3a068db975dc035e3b # frozen: v0.9.4
8484
hooks:
8585
- id: ruff
8686
args: [--fix, --show-fixes, --exit-non-zero-on-fix]
8787
- id: ruff-format
8888

8989
- repo: https://github.com/pre-commit/mirrors-mypy
90-
rev: f56614daa94d5cd733d3b7004c5df9caad267b4a # frozen: v1.13.0
90+
rev: bbc3dc1f890007061f18f17e2334f216ea9e5df7 # frozen: v1.14.1
9191
hooks:
9292
- id: mypy
9393
args: [--config-file=pyproject.toml]
@@ -101,12 +101,12 @@ repos:
101101
- xsdata>=24.5
102102

103103
- repo: https://github.com/scientific-python/cookie
104-
rev: 35368e874265d105e1ca3355df7ef51bbca8eba6 # frozen: 2024.08.19
104+
rev: f801700e5a8beb2f42e63d752d7116aa4dbaa0f1 # frozen: 2025.01.22
105105
hooks:
106106
- id: sp-repo-review
107107

108108
- repo: https://github.com/crate-ci/typos
109-
rev: 1ea1ce4bc91a240102189742ddac7480304b52b1 # frozen: typos-dict-v0.11.37
109+
rev: e59f226fadcb05a1440bd8b35ee994a9d21bf03b # frozen: typos-dict-v0.12.4
110110
hooks:
111111
- id: typos
112112
args: [--force-exclude]
@@ -118,7 +118,7 @@ repos:
118118
- id: licensecheck
119119

120120
- repo: https://github.com/compilerla/conventional-pre-commit
121-
rev: 48af87c8983cb0f5ba7693448da007b731196715 # frozen: v3.6.0
121+
rev: 4394e2e7ab54549ad3f61cd32ae044710f885d12 # frozen: v4.0.0
122122
hooks:
123123
- id: conventional-pre-commit
124124
stages: [commit-msg]

docs/src/install.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ python -m pip install python-re3data
1111
This will automatically install compatible versions of all dependencies, including `httpx` and `xsdata`.
1212

1313
!!! note
14+
1415
It is highly recommended creating a virtual environment before installing the project. This will help keep your
1516
dependencies isolated and prevent conflicts with other projects. You can use `venv` to create and manage virtual
1617
environments.
@@ -29,6 +30,7 @@ For more details, see [Optional Dependencies](#optional-dependencies).
2930
- Python 3.10 or higher installed on your machine
3031

3132
!!! tip "Alternative: Use uv instead of pip"
33+
3234
[uv](https://github.com/astral-sh/uv)[^1] is a fast Python package installer and resolver, written in Rust.
3335

3436
Create a virtual environment in the current directory:
@@ -52,6 +54,7 @@ docker pull ghcr.io/afuetterer/python-re3data:latest
5254
```
5355

5456
!!! note
57+
5558
The optional `[cli]` dependency group is pre-installed in the Docker image and the `re3data` executable is provided as
5659
an entry point.
5760

@@ -63,6 +66,7 @@ $ docker run --rm afuetterer/python-re3data --version
6366
```
6467

6568
!!! tip "Alternative: Use Podman instead of Docker"
69+
6670
[Podman](https://podman.io/) is an open-source containerization platform that allows you to create, run, and manage
6771
Linux containers.
6872

0 commit comments

Comments
 (0)