mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 04:20:17 +02:00
68 lines
1.6 KiB
YAML
68 lines
1.6 KiB
YAML
# Apply to all files without committing:
|
|
# pre-commit run --all-files
|
|
# Update this file:
|
|
# pre-commit autoupdate
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: check-case-conflict
|
|
- id: check-json
|
|
- id: check-xml
|
|
- id: check-yaml
|
|
- id: fix-byte-order-marker
|
|
- id: trailing-whitespace
|
|
exclude: |
|
|
(?x)(
|
|
\.min\.css|
|
|
\.min\.js|
|
|
\.po|
|
|
\.mo|
|
|
swagger\.json
|
|
)
|
|
- id: end-of-file-fixer
|
|
exclude: |
|
|
(?x)(
|
|
\.min\.css|
|
|
\.min\.js|
|
|
\.po|
|
|
\.mo|
|
|
swagger\.json
|
|
)
|
|
- id: mixed-line-ending
|
|
args: [ '--fix=lf' ]
|
|
- id: fix-encoding-pragma
|
|
args: [ '--remove' ]
|
|
|
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
|
rev: 2.7.1
|
|
hooks:
|
|
- id: editorconfig-checker
|
|
exclude: |
|
|
(?x)(
|
|
LICENSE|
|
|
allianceauth\/static\/allianceauth\/css\/themes\/bootstrap-locals.less|
|
|
\.po|
|
|
\.mo|
|
|
swagger\.json
|
|
)
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.3.2
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [ --py38-plus ]
|
|
|
|
- repo: https://github.com/adamchainz/django-upgrade
|
|
rev: 1.13.0
|
|
hooks:
|
|
- id: django-upgrade
|
|
args: [--target-version=4.2]
|
|
|
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
|
rev: v2.2.0
|
|
hooks:
|
|
- id: setup-cfg-fmt
|
|
args: [ --include-version-classifiers ]
|