mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-27 19:16:44 +00:00
* Add flag to overwrite existing file when exporting records * Remove temp. file at end of export process * Run flake8 on tasks.py as well * Fix style * Change style of default text * Add type bool * dev-setup * Revert "dev-setup" This reverts commit 789356422ae05a1522620d86f13d4aaecd0afafe. * Update tasks.py with new flags to allow choosing where permissions end up, and if temporary files are kept or not
31 lines
808 B
YAML
31 lines
808 B
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
|