mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
* 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
39 lines
622 B
Makefile
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
|