|
1 | 1 | [% from pathjoin("includes", "variable.jinja") import page_url with context -%]
|
2 |
| -.PHONY: clean deepclean install dev prerequisites mypy ruff ruff-format pyproject-fmt codespell lint pre-commit test-run test build publish doc-autobuild doc-gen doc-mypy doc-coverage doc |
| 2 | +.PHONY: clean deepclean install dev prerequisites mypy ruff ruff-format pyproject-fmt codespell lint pre-commit test-run test build publish doc-autobuild doc-build doc-coverage doc |
3 | 3 | [%- if project_name == "Serious Scaffold Python" %] consistency[% endif %]
|
4 | 4 |
|
5 | 5 | ########################################################################################
|
@@ -44,16 +44,16 @@ deepclean: clean
|
44 | 44 |
|
45 | 45 | # Install the package in editable mode.
|
46 | 46 | install:
|
47 |
| - pdm install --prod |
| 47 | + pdm sync --prod |
48 | 48 |
|
49 | 49 | # Install the package in editable mode with specific optional dependencies.
|
50 | 50 | dev-%:
|
51 |
| - pdm install --dev --group $* |
| 51 | + pdm sync --dev --group $* |
52 | 52 |
|
53 | 53 | # Prepare the development environment.
|
54 | 54 | # Install the package in editable mode with all optional dependencies and pre-commit hook.
|
55 | 55 | dev:
|
56 |
| - pdm install |
| 56 | + pdm sync |
57 | 57 | if [ "$(CI)" != "true" ] && command -v pre-commit > /dev/null 2>&1; then pre-commit install; fi
|
58 | 58 |
|
59 | 59 | # Install standalone tools
|
|
74 | 74 |
|
75 | 75 | # Check lint with mypy.
|
76 | 76 | mypy:
|
77 |
| - pdm run python -m mypy . |
| 77 | + pdm run python -m mypy . --html-report $(PUBLIC_DIR)/reports/mypy |
78 | 78 |
|
79 | 79 | # Lint with ruff.
|
80 | 80 | ruff:
|
@@ -137,20 +137,16 @@ doc-autobuild:
|
137 | 137 | -a
|
138 | 138 |
|
139 | 139 | # Build documentation only from src.
|
140 |
| -doc-gen: |
| 140 | +doc-build: |
141 | 141 | pdm run python -m sphinx.cmd.build docs $(PUBLIC_DIR)
|
142 | 142 |
|
143 |
| -# Generate mypy reports. |
144 |
| -doc-mypy: |
145 |
| - pdm run python -m mypy src tests --html-report $(PUBLIC_DIR)/reports/mypy |
146 |
| - |
147 | 143 | # Generate html coverage reports with badge.
|
148 | 144 | doc-coverage: test-run
|
149 | 145 | pdm run python -m coverage html -d $(PUBLIC_DIR)/reports/coverage
|
150 | 146 | pdm run bash scripts/generate-coverage-badge.sh $(PUBLIC_DIR)/_static/badges
|
151 | 147 |
|
152 | 148 | # Generate all documentation with reports.
|
153 |
| -doc: doc-gen doc-mypy doc-coverage |
| 149 | +doc: doc-build mypy doc-coverage |
154 | 150 |
|
155 | 151 | [% if project_name == "Serious Scaffold Python" -%]
|
156 | 152 | ########################################################################################
|
|
0 commit comments