A set of models, an admin and utilities for frequently used patterns. https://docs.franco.net.eu.org/django-futils/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

61 lines
1.8 KiB

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: destroyed-symlinks
- id: detect-private-key
- id: check-ast
- id: check-case-conflict
- id: debug-statements
- repo: https://github.com/pre-commit/mirrors-yapf
rev: 'v0.31.0' # Use the sha / tag you want to point at
hooks:
- id: yapf
args: ['--style', '{based_on_style: pep8; indent_width: 4}']
- repo: https://github.com/pycqa/flake8
rev: '3.9.2' # Use the sha / tag you want to point at
hooks:
- id: flake8
args: ['--ignore=F401,E501,W503,W504,W605,E125,E129,E502,E128,E402']
- repo: https://github.com/PyCQA/bandit
rev: '1.7.0' # Use the sha / tag you want to point at
hooks:
- id: bandit
args: ['--level', 'LOW']
- repo: https://github.com/twu/skjold
rev: 'v0.4.1'
hooks:
- id: skjold
args: ['-s', 'gemnasium', '-s', 'pyup']
- repo: https://github.com/pycqa/isort
rev: 5.9.3
hooks:
- id: isort
- repo: https://codeberg.org/frnmst/licheck
rev: 0.0.3
hooks:
- id: licheck
args: ['--configuration-file', '.allowed_licenses.yml']
- repo: https://github.com/mgedmin/check-manifest
rev: "0.46"
hooks:
- id: check-manifest
args: ['--ignore','docs/*,docs/assets/*,Pipfile,Makefile,Dockerfile,docker/*,asciinema/*,*.yaml,*.yml,assets/*,django_futils/tests/*,packages/aur/*,borgmatic/*,env.dist,manage.py,SECRET_SETTINGS.py.dist,requirements.txt']
- repo: https://github.com/hadolint/hadolint
rev: v2.6.0
hooks:
- id: hadolint-docker