mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-16 22:10:28 +00:00
Configure jinjalint to enforce errors, while filtering-out false positives
This commit is contained in:
parent
e1c2410734
commit
d03642dd38
2 changed files with 6 additions and 2 deletions
|
|
@ -17,7 +17,9 @@ jobs:
|
||||||
key: pip-package-v1-{{ .Branch }}
|
key: pip-package-v1-{{ .Branch }}
|
||||||
- run: pipenv run flake8 wagtail
|
- run: pipenv run flake8 wagtail
|
||||||
- run: pipenv run isort --check-only --diff --recursive wagtail
|
- run: pipenv run isort --check-only --diff --recursive wagtail
|
||||||
- run: pipenv run jinjalint --parse-only wagtail || true
|
# Filter out known false positives, while preserving normal output and error codes.
|
||||||
|
# See https://github.com/motet-a/jinjalint/issues/18.
|
||||||
|
- run: pipenv run jinjalint --parse-only wagtail | grep -v 'welcome_page.html:6:70' | tee /dev/tty | wc -l | grep -q '0'
|
||||||
- run: DATABASE_NAME=wagtail.db pipenv run python -u runtests.py
|
- run: DATABASE_NAME=wagtail.db pipenv run python -u runtests.py
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
|
|
|
||||||
4
Makefile
4
Makefile
|
|
@ -18,7 +18,9 @@ develop: clean-pyc
|
||||||
lint:
|
lint:
|
||||||
flake8 wagtail
|
flake8 wagtail
|
||||||
isort --check-only --diff --recursive wagtail
|
isort --check-only --diff --recursive wagtail
|
||||||
jinjalint --parse-only wagtail || true
|
# Filter out known false positives, while preserving normal output and error codes.
|
||||||
|
# See https://github.com/motet-a/jinjalint/issues/18.
|
||||||
|
jinjalint --parse-only wagtail | grep -v 'welcome_page.html:6:70' | tee /dev/tty | wc -l | grep -q '0'
|
||||||
npm run lint:css --silent
|
npm run lint:css --silent
|
||||||
npm run lint:js --silent
|
npm run lint:js --silent
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue