Files
fastapi-users/Makefile
Matyáš Richter 48d1be87a4 Added codestyle check and lint to the build action (#798)
* Applied `make format`

* Added format-check to makefile

* Added a "Check codestyle" step to the build action.

* Rerun `make format`

* Added a "lint" target to makefile

* Added lint step to the build action

* Added W503 to the list of ignored flake8 errors.

See https://www.flake8rules.com/rules/W503.html
2021-11-23 08:13:11 +01:00

39 lines
622 B
Makefile

isort-src:
isort ./fastapi_users ./tests
isort-docs:
isort ./docs/src -o fastapi_users
format: isort-src isort-docs
black .
isort-src-check:
isort --check-only ./fastapi_users ./tests
isort-docs-check:
isort --check-only ./docs/src -o fastapi_users
format-check: isort-src-check isort-docs-check
black --check .
lint:
flake8 ./fastapi_users ./tests
test:
pytest --cov=fastapi_users/ --cov-report=term-missing --cov-fail-under=100
docs-serve:
mkdocs serve
docs-publish:
mkdocs gh-deploy
bumpversion-major:
bumpversion major
bumpversion-minor:
bumpversion minor
bumpversion-patch:
bumpversion patch