Skip to content

Commit 1141d55

Browse files
authored
Merge pull request #1072 from opengisch/pre-commit-plusplus
Add more pre-commit checks and bump dependencies
2 parents 5b40221 + d8122db commit 1141d55

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

.pre-commit-config.yaml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,39 @@
11
repos:
2-
# Fix end of files
32
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.6.0
3+
rev: v5.0.0
54
hooks:
6-
- id: trailing-whitespace
5+
- id: check-ast
6+
files: '.*\.py$'
7+
- id: check-case-conflict
8+
- id: check-executables-have-shebangs
9+
- id: check-illegal-windows-names
10+
- id: check-json
11+
- id: check-merge-conflict
12+
- id: check-symlinks
13+
- id: check-toml
14+
- id: check-yaml
15+
- id: debug-statements
16+
- id: destroyed-symlinks
717
- id: end-of-file-fixer
18+
- id: fix-byte-order-marker
19+
- id: forbid-new-submodules
820
- id: mixed-line-ending
921
args:
1022
- '--fix=lf'
23+
- id: no-commit-to-branch
24+
- id: trailing-whitespace
1125

1226
- repo: https://github.com/adamchainz/django-upgrade
13-
rev: "1.21.0"
27+
rev: '1.22.2'
1428
hooks:
1529
- id: django-upgrade
16-
args: [--target-version, "4.2", "--skip", "admin_register"]
17-
files: "^docker-app/qfieldcloud/.*.py$"
30+
args: [--target-version, '4.2', '--skip', 'admin_register']
31+
files: '^docker-app/qfieldcloud/.*.py$'
1832

1933
# Lint and format
2034
- repo: https://github.com/astral-sh/ruff-pre-commit
2135
# Ruff version.
22-
rev: v0.6.3
36+
rev: v0.8.1
2337
hooks:
2438
# Run the linter.
2539
- id: ruff
@@ -30,7 +44,7 @@ repos:
3044

3145
# Static type-checking with mypy
3246
- repo: https://github.com/pre-commit/mirrors-mypy
33-
rev: 'v1.11.2'
47+
rev: v1.13.0
3448
hooks:
3549
- id: mypy
3650
additional_dependencies: [types-pytz, types-Deprecated, types-PyYAML, types-requests, types-tabulate, types-jsonschema, django-stubs, django-stubs-ext]

docker-app/manage.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)