55 lines
1.8 KiB
YAML
55 lines
1.8 KiB
YAML
fail_fast: true
|
|
repos:
|
|
- repo: https://github.com/adamchainz/djade-pre-commit
|
|
rev: "1.3.2" # Replace with the latest tag on GitHub
|
|
hooks:
|
|
- id: djade
|
|
args: [ --target-version, "4.2" ] # Replace with Django version
|
|
- repo: https://github.com/pycqa/bandit
|
|
rev: 1.8.3
|
|
hooks:
|
|
- id: bandit
|
|
args: [ "-iii", "-ll" ]
|
|
- repo: https://github.com/psf/black
|
|
rev: 25.1.0
|
|
hooks:
|
|
- id: black
|
|
language_version: python3.9
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-merge-conflict
|
|
- id: detect-private-key
|
|
- id: check-symlinks
|
|
- id: check-toml
|
|
- id: check-xml
|
|
- id: check-yaml
|
|
- id: forbid-new-submodules
|
|
- id: mixed-line-ending
|
|
- id: trailing-whitespace
|
|
language: python
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
rev: v1.10.0 # Use the ref you want to point at
|
|
hooks:
|
|
- id: python-no-eval
|
|
- id: python-no-log-warn
|
|
- id: python-use-type-annotations
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.19.1
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [ --py311-plus ]
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 7.1.2
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies: [
|
|
'flake8-blind-except',
|
|
'flake8-docstrings',
|
|
'flake8-bugbear',
|
|
'flake8-comprehensions',
|
|
'flake8-docstrings',
|
|
'flake8-implicit-str-concat',
|
|
'pydocstyle>=5.0.0',
|
|
]
|