mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
f38386b13c
* Add bandit to pre-commit checks * fix catchall exceptions * remove unused definitons * remove unuseed ariables * Add docstring * fix B006, B008 errors * fix B007 error * ignore B009 * Add checks for formatting and naming
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.2.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
|