mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
4d8836378b
* Add pre-commit to the stack * exclude static * Add locales to excludes * fix style errors * rename pipeline steps * also wait on precommit * make template matching simpler * Use the same code for python setup everywhere * use step and cache for python setup * move regular settings up into general envs * just use full update * Use invoke instead of static references * make setup actions more similar * use python3 * refactor names to be similar * fix runner version * fix references * remove incidential change * use matrix for os * Github can't do this right now * ignore docstyle errors * Add seperate docstring test * update flake call * do not fail on docstring * refactor setup into workflow * update reference * switch to action * resturcture * add bash statements * remove os from cache * update input checks * make code cleaner * fix boolean * no relative paths * install wheel by python * switch to install * revert back to simple wheel * refactor import export tests * move setup keys back to not disturbe tests * remove docstyle till that is fixed * update references * continue on error * use relativ action references * Change step / job docstrings
25 lines
620 B
YAML
25 lines
620 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
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: '5.10.1'
|
|
hooks:
|
|
- id: isort
|