1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
SHELL:=/usr/bin/env bash
.PHONY: format
format:
poetry run ruff format
poetry run ruff check
.PHONY: lint
lint:
poetry run ruff check --exit-non-zero-on-fix --diff
poetry run ruff format --check --diff
poetry run mypy django_test_migrations
poetry run flake8 .
.PHONY: unit
unit:
# We need one more test run to make sure that `--nomigrations` work:
poetry run pytest -p no:cov -o addopts="" --nomigrations
poetry run pytest
.PHONY: package
package:
poetry check
poetry run pip check
.PHONY: test
test: lint unit package
|