Makefile 479 B

1234567891011121314151617
  1. .PHONY: lint format
  2. help:
  3. @echo "lint - check style with black, flake8, sort python with isort, and indent html"
  4. @echo "format - enforce a consistent code style across the codebase and sort python files with isort"
  5. lint:
  6. black --target-version py37 --check --diff .
  7. flake8
  8. isort --check-only --diff .
  9. curlylint --parse-only bakerydemo
  10. git ls-files '*.html' | xargs djhtml --check
  11. format:
  12. black --target-version py37 .
  13. isort .
  14. git ls-files '*.html' | xargs djhtml -i