|
1 | | -.PHONY : help test install |
| 1 | +.PHONY : install shell format lint test test/cov |
2 | 2 |
|
3 | | -format: ## Run formatters (black, isort) with poetry |
4 | | - poetry run isort drf_simple_api_errors test_project |
5 | | - poetry run black drf_simple_api_errors test_project |
| 3 | +# Install dependencies with poetry |
| 4 | +install: |
| 5 | + @poetry install --with dev -v |
6 | 6 |
|
7 | | -install: ## Install dependencies with poetry |
8 | | - poetry install --with dev -v |
| 7 | +# Run poetry shell |
| 8 | +shell: |
| 9 | + @poetry shell |
9 | 10 |
|
10 | | -lint: ## Check format (black, isort) and linting (flake8) |
11 | | - poetry run isort --check drf_simple_api_errors test_project |
12 | | - poetry run black --check drf_simple_api_errors test_project --exclude migrations |
13 | | - poetry run flake8 drf_simple_api_errors test_project --max-line-length 88 |
| 11 | +# Run formatters (black, isort) with poetry |
| 12 | +format: |
| 13 | + @poetry run isort drf_simple_api_errors test_project |
| 14 | + @poetry run black drf_simple_api_errors test_project |
14 | 15 |
|
15 | | -shell: ## Run poetry shell |
16 | | - poetry shell |
| 16 | +# Check format (black, isort) and linting (flake8) |
| 17 | +lint: |
| 18 | + @poetry run isort --check drf_simple_api_errors test_project |
| 19 | + @poetry run black --check drf_simple_api_errors test_project --exclude migrations |
| 20 | + @poetry run flake8 drf_simple_api_errors test_project --max-line-length 88 |
17 | 21 |
|
18 | | -test: ## Run unittests with poetry |
19 | | - poetry run pytest test_project |
| 22 | +# Run unittests with poetry |
| 23 | +test: |
| 24 | + @poetry run pytest test_project |
20 | 25 |
|
21 | | -test/cov: ## Run code coverage tests coverage with poetry |
22 | | - poetry run pytest test_project --cov=drf_simple_api_errors --cov-report xml:coverage.xml |
| 26 | +# Run code coverage tests coverage with poetry |
| 27 | +test/cov: |
| 28 | + @poetry run pytest test_project --cov=drf_simple_api_errors --cov-report xml:coverage.xml |
0 commit comments