69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
# IMPORTANT:
|
|
# Do not deal with submodules.
|
|
files: '(README.md|configuration.yaml|Makefile|scripts/.*)'
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: 'v4.4.0'
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: destroyed-symlinks
|
|
- id: detect-private-key
|
|
- id: check-ast
|
|
- id: check-case-conflict
|
|
- id: debug-statements
|
|
- id: fix-encoding-pragma
|
|
- id: forbid-submodules
|
|
- id: check-symlinks
|
|
- id: check-shebang-scripts-are-executable
|
|
- id: check-case-conflict
|
|
- id: check-added-large-files
|
|
args: ['--maxkb=32768']
|
|
- id: destroyed-symlinks
|
|
|
|
- repo: https://codeberg.org/frnmst/md-toc
|
|
rev: '8.1.8' # or a specific git tag from md-toc
|
|
hooks:
|
|
- id: md-toc
|
|
args: [-p, 'github', '-l6'] # CLI options
|
|
|
|
# - repo: https://codeberg.org/frnmst/licheck
|
|
# rev: 1.0.0
|
|
# hooks:
|
|
# - id: licheck
|
|
# args: ['--configuration-file', '.allowed_licenses.yml']
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: '5.11.4'
|
|
hooks:
|
|
- id: isort
|
|
|
|
- repo: https://github.com/PyCQA/bandit
|
|
rev: '1.7.4' # Use the sha / tag you want to point at
|
|
hooks:
|
|
- id: bandit
|
|
args: ['--skip', 'B404,B506,B410,B603', '--level', 'LOW']
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: '5.0.4' # Use the sha / tag you want to point at
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies: [flake8-docstrings]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-yapf
|
|
rev: 'v0.32.0' # Use the sha / tag you want to point at
|
|
hooks:
|
|
- id: yapf
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: stats
|
|
name: stats
|
|
language: system
|
|
entry: make stats
|
|
verbose: true
|
|
always_run: true
|
|
pass_filenames: false
|