mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 04:20:17 +02:00
- update string format method - remove redundant default arguments from function calls - remove unused imports - remove unicode identifier from strings, it's default in py3 (see: https://stackoverflow.com/a/4182635/12201331)
35 lines
1.0 KiB
YAML
35 lines
1.0 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.0.1
|
|
hooks:
|
|
- id: check-case-conflict
|
|
- id: check-json
|
|
- id: check-xml
|
|
- id: check-yaml
|
|
- id: fix-byte-order-marker
|
|
- id: trailing-whitespace
|
|
exclude: (\.min\.css|\.min\.js|\.mo|\.po|swagger\.json)$
|
|
- id: end-of-file-fixer
|
|
exclude: (\.min\.css|\.min\.js|\.mo|\.po|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.3.54
|
|
hooks:
|
|
- id: editorconfig-checker
|
|
exclude: ^(LICENSE|allianceauth\/static\/css\/themes\/bootstrap-locals.less|allianceauth\/eveonline\/swagger.json|(.*.po)|(.*.mo))
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v2.29.0
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [ --py37-plus ]
|