mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
* Remove stat context variables * Revert "Remove stat context variables" This reverts commit 0989c308d0cea9b9405a1338d257b542c6d33d73. * remove old backport * move requirements * move isort * move migrations-tests * add pip-tools as req and add hook * Use hashes and also run when txt files are added * Update to hashes in requirements * update requirements install path * remove allauth-2fa for a test * install dev-requirements * re-enable allauth * remove hashes from pre normal setup * Remove version bindings if they are the laest * move depencies to upper bound * fix django-money * remove windows specific requirements * also install dependencies * update markdownify * remove django-admin-shell * remove unneeded packages * add docs * remove pins and fix pre-commit pipeline * pin django-money * really remove admin shell * return default behaviour for money serializer * pip fix * update filter name * set decimal for output * add migrations * pin coveralls * update requirements Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
exclude: |
|
|
(?x)^(
|
|
InvenTree/InvenTree/static/.*|
|
|
InvenTree/locale/.*
|
|
)$
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
- id: mixed-line-ending
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: '4.0.1'
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies: [
|
|
'flake8-bugbear',
|
|
'flake8-docstrings',
|
|
'flake8-string-format',
|
|
'pep8-naming ',
|
|
]
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: '5.10.1'
|
|
hooks:
|
|
- id: isort
|
|
- repo: https://github.com/jazzband/pip-tools
|
|
rev: 6.6.2
|
|
hooks:
|
|
- id: pip-compile
|
|
name: pip-compile requirements-dev.in
|
|
args: [--generate-hashes, requirements-dev.in, -o, requirements-dev.txt]
|
|
files: ^requirements-dev\.(in|txt)$
|
|
- id: pip-compile
|
|
name: pip-compile requirements.txt
|
|
args: [requirements.in, -o, requirements.txt]
|
|
files: ^requirements\.(in|txt)$
|