Skip to content

Commit 30bda1a

Browse files
committed
📝 docs(mkdocs): add mise equivalent commands along with make
1 parent dac1060 commit 30bda1a

12 files changed

Lines changed: 300 additions & 44 deletions

File tree

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,27 +135,39 @@ uvx copier update --trust --exclude src/ --exclude tests/ .
135135
All tasks are defined in `mise.toml` and exposed through `make`. Common tasks include:
136136

137137
```
138+
audit Check dependencies for known vulnerabilities.
138139
build Build source and wheel distributions.
139-
check Check it all!
140-
docs-check Check if the documentation builds correctly.
140+
check-all Run all quality checks.
141141
check-quality Run linters and format checks.
142+
check-security Run security analysis with Bandit.
142143
check-types Run static type checks.
143144
clean-all Delete build artifacts.
144145
clean-cache Remove cache files.
145146
coverage Generate coverage reports (text, HTML, XML).
147+
dc Run docker compose with Doppler-mounted .env.
146148
docker-build Build Docker images.
149+
docker-shell Open a shell in a service container.
147150
docker-start Start Docker Compose services.
148151
docker-stop Stop and remove Docker Compose services.
149-
docs-serve Serve the documentation (localhost:8080).
152+
docs-check Check if the documentation builds correctly.
150153
docs-deploy Publish docs to GitHub Pages.
154+
docs-serve Serve the documentation (localhost:8080).
155+
doppler-create-config Create a new Doppler branch config.
156+
doppler-create-token Create a Doppler service token for this directory.
157+
doppler-delete-config Delete a Doppler branch config.
158+
doppler-set-token Configure a preexisting Doppler service token.
159+
doppler-upload-secrets Upload a local .env file to Doppler.
151160
format Auto-format code (Ruff).
161+
mise-setup-completions Install mise shell completions for the current shell.
162+
pre-commit Run all pre-commit hooks on all files.
152163
publish Upload distributions to PyPI.
153164
release Automate version bump, changelog, and publish.
154-
setup Bootstrap prod environment.
155165
setup-cli Install the project's CLI globally via uv.
156166
setup-dev Bootstrap dev environment & install pre-commit hooks.
167+
setup-prod Set up the project environment.
157168
test Run tests with pytest.
158169
tox Run tests across multiple Python versions.
170+
upgrade Upgrade all dependencies to latest compatible versions.
159171
```
160172

161173
For the full list and details, see [mise.toml](https://github.com/bassemkaroui/python-template-uv/blob/main/template/mise.toml.jinja).

copier.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _tasks:
2323
echo ' ACTION REQUIRED: Set up the following repo secrets' &&
2424
echo '========================================================' &&
2525
echo '' &&
26-
echo ' - GIPHY_API_KEY : needed for PR thank-you comments' &&
26+
echo ' - GIPHY_API_KEY : needed for PR thank-you comments' &&
2727
{% if dependency_updater == 'renovate' and renovate_auth_method == 'pat' %}
2828
echo ' - RENOVATE_TOKEN : needed for self-hosted Renovate' &&
2929
{% elif dependency_updater == 'renovate' and renovate_auth_method == 'github_app' %}

docs/features/ci-cd.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ GitHub-native solution. Opens weekly PRs to keep GitHub Actions dependencies up
4141

4242
## Required Secrets
4343

44-
| Secret | Required For | How to Set |
45-
|--------|-------------|------------|
46-
| `GIPHY_API_KEY` | PR thank-you comments | `gh secret set GIPHY_API_KEY` |
47-
| `PYPI_TOKEN` | PyPI publishing (if enabled) | `gh secret set PYPI_TOKEN` |
48-
| `RENOVATE_TOKEN` | Renovate with PAT auth | `gh secret set RENOVATE_TOKEN` |
49-
| `RENOVATE_APP_ID` | Renovate with GitHub App auth | `gh secret set RENOVATE_APP_ID` |
50-
| `RENOVATE_APP_PRIVATE_KEY` | Renovate with GitHub App auth | `gh secret set RENOVATE_APP_PRIVATE_KEY` |
44+
| Secret | Required For | How to Set |
45+
| -------------------------- | ----------------------------- | ------------------------------------------------------------------ |
46+
| `GIPHY_API_KEY` | PR thank-you comments | `gh secret set GIPHY_API_KEY` |
47+
| `PYPI_TOKEN` | PyPI publishing (if enabled) | `gh secret set PYPI_TOKEN` |
48+
| `RENOVATE_TOKEN` | Renovate with PAT auth | `gh secret set RENOVATE_TOKEN` |
49+
| `RENOVATE_APP_ID` | Renovate with GitHub App auth | `gh secret set RENOVATE_APP_ID` |
50+
| `RENOVATE_APP_PRIVATE_KEY` | Renovate with GitHub App auth | `gh secret set RENOVATE_APP_PRIVATE_KEY < path/to/private-key.pem` |

docs/features/docker.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ When `dockerfile: true` (the default), the template generates Docker configurati
1212

1313
## Commands
1414

15+
/// tab | make
16+
1517
```bash
1618
# Build Docker images
1719
make docker-build
@@ -23,6 +25,23 @@ make docker-start
2325
make docker-stop
2426
```
2527

28+
///
29+
30+
/// tab | mise
31+
32+
```bash
33+
# Build Docker images
34+
mise run docker:build
35+
36+
# Start services
37+
mise run docker:start
38+
39+
# Stop and remove services
40+
mise run docker:stop
41+
```
42+
43+
///
44+
2645
## GPU Support
2746

2847
Enable GPU support by setting `gpus: true` during generation. This adds NVIDIA GPU configuration to the Docker setup:

docs/features/documentation.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Generated projects include a fully configured [MkDocs](https://github.com/mkdocs
1111

1212
## Local Development
1313

14+
/// tab | make
15+
1416
```bash
1517
# Serve docs with live reload (localhost:8080)
1618
make docs-serve
@@ -19,13 +21,40 @@ make docs-serve
1921
make docs-check
2022
```
2123

24+
///
25+
26+
/// tab | mise
27+
28+
```bash
29+
# Serve docs with live reload (localhost:8080)
30+
mise run docs:serve
31+
32+
# Check that docs build without errors
33+
mise run docs:check
34+
```
35+
36+
///
37+
2238
## Deployment
2339

40+
/// tab | make
41+
2442
```bash
2543
# Deploy to GitHub Pages
2644
make docs-deploy
2745
```
2846

47+
///
48+
49+
/// tab | mise
50+
51+
```bash
52+
# Deploy to GitHub Pages
53+
mise run docs:deploy
54+
```
55+
56+
///
57+
2958
The CI/CD pipeline also deploys docs automatically on pushes to `main`.
3059

3160
## Structure

docs/features/optional.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,24 @@ Scaffolds a [Typer](https://typer.tiangolo.com/) CLI application with:
1010
- CLI module with a sample command
1111
- Customizable CLI name via the `cli_name` variable
1212

13+
/// tab | make
14+
1315
```bash
1416
# Install CLI globally after generation
1517
make setup-cli
1618
```
1719

20+
///
21+
22+
/// tab | mise
23+
24+
```bash
25+
# Install CLI globally after generation
26+
mise run setup:cli
27+
```
28+
29+
///
30+
1831
## Strict Typing (`with_strict_typing`)
1932

2033
Enables strict type checking and adds a `py.typed` marker file for [PEP 561](https://peps.python.org/pep-0561/) compliance. This signals to downstream consumers that your package ships inline type information.

docs/features/quality-tools.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The template sets up a comprehensive code quality pipeline that runs automatical
66

77
[Ruff](https://github.com/astral-sh/ruff) handles both **formatting** and **linting** in a single, fast tool.
88

9+
/// tab | make
10+
911
```bash
1012
# Auto-format code
1113
make format
@@ -14,16 +16,42 @@ make format
1416
make check-quality
1517
```
1618

19+
///
20+
21+
/// tab | mise
22+
23+
```bash
24+
# Auto-format code
25+
mise run format
26+
27+
# Check formatting and lint rules
28+
mise run check:quality
29+
```
30+
31+
///
32+
1733
Ruff is configured in `pyproject.toml` with sensible defaults. It replaces Black, isort, flake8, and many other tools.
1834

1935
## Mypy
2036

2137
[Mypy](https://github.com/python/mypy) performs static type checking.
2238

39+
/// tab | make
40+
2341
```bash
2442
make check-types
2543
```
2644

45+
///
46+
47+
/// tab | mise
48+
49+
```bash
50+
mise run check:types
51+
```
52+
53+
///
54+
2755
Configuration lives in `pyproject.toml`. If you enable the `with_strict_typing` option during generation, a `py.typed` marker file is included for PEP 561 compliance.
2856

2957
## Pre-commit Hooks
@@ -46,7 +74,20 @@ pre-commit install
4674

4775
## Running All Checks
4876

77+
/// tab | make
78+
79+
```bash
80+
# Run everything: lint, types, docs build
81+
make check-all
82+
```
83+
84+
///
85+
86+
/// tab | mise
87+
4988
```bash
5089
# Run everything: lint, types, docs build
51-
make check
90+
mise run check:all
5291
```
92+
93+
///

docs/features/task-runner.md

Lines changed: 41 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,48 @@ make <task>
1010
mise run <task>
1111
```
1212

13+
> [!TIP]
14+
> Prefer `mise run` over `make` when running tasks directly:
15+
>
16+
> - **Auto-completion**: Run `make mise-setup-completions` to install shell completions for mise, giving you tab-completion for all tasks.
17+
> - **Flags & arguments**: mise tasks can accept flags and positional arguments (e.g. `mise run docker-build --dev`, `mise run test -- -k test_foo`), which is not possible through `make`.
18+
1319
## Available Tasks
1420

15-
| Task | Description |
16-
|------|-------------|
17-
| `build` | Build source and wheel distributions |
18-
| `check` | Run all checks (lint, types, docs) |
19-
| `check-quality` | Run linters and format checks |
20-
| `check-types` | Run static type checks |
21-
| `clean-all` | Delete build artifacts |
22-
| `clean-cache` | Remove cache files |
23-
| `coverage` | Generate coverage reports (text, HTML, XML) |
24-
| `docker-build` | Build Docker images |
25-
| `docker-start` | Start Docker Compose services |
26-
| `docker-stop` | Stop and remove Docker Compose services |
27-
| `docs-serve` | Serve the documentation (localhost:8080) |
28-
| `docs-deploy` | Publish docs to GitHub Pages |
29-
| `docs-check` | Check if the documentation builds correctly |
30-
| `format` | Auto-format code (Ruff) |
31-
| `publish` | Upload distributions to PyPI |
32-
| `release` | Automate version bump, changelog, and publish |
33-
| `setup` | Bootstrap prod environment |
34-
| `setup-cli` | Install the project's CLI globally via uv |
35-
| `setup-dev` | Bootstrap dev environment and install pre-commit hooks |
36-
| `test` | Run tests with pytest |
37-
| `tox` | Run tests across multiple Python versions |
21+
| Task | Description |
22+
| ------------------------ | ------------------------------------------------------ |
23+
| `audit` | Check dependencies for known vulnerabilities |
24+
| `build` | Build source and wheel distributions |
25+
| `check-all` | Run all quality checks |
26+
| `check-quality` | Run linters and format checks |
27+
| `check-security` | Run security analysis with Bandit |
28+
| `check-types` | Run static type checks |
29+
| `clean-all` | Delete build artifacts and cache files |
30+
| `clean-cache` | Remove cache files |
31+
| `coverage` | Generate coverage reports (text, HTML, XML) |
32+
| `dc` | Run docker compose with Doppler-mounted .env |
33+
| `docker-build` | Build Docker images |
34+
| `docker-shell` | Open a shell in a service container |
35+
| `docker-start` | Start Docker Compose services |
36+
| `docker-stop` | Stop and remove Docker Compose services |
37+
| `docs-check` | Check if the documentation builds correctly |
38+
| `docs-deploy` | Publish docs to GitHub Pages |
39+
| `docs-serve` | Serve the documentation (localhost:8080) |
40+
| `doppler-create-config` | Create a new Doppler branch config |
41+
| `doppler-create-token` | Create a Doppler service token for this directory |
42+
| `doppler-delete-config` | Delete a Doppler branch config |
43+
| `doppler-set-token` | Configure a preexisting Doppler service token |
44+
| `doppler-upload-secrets` | Upload a local .env file to Doppler |
45+
| `format` | Auto-format code (Ruff) |
46+
| `mise-setup-completions` | Install mise shell completions for the current shell |
47+
| `pre-commit` | Run all pre-commit hooks on all files |
48+
| `publish` | Upload distributions to PyPI |
49+
| `release` | Automate version bump, changelog, and publish |
50+
| `setup-cli` | Install the project's CLI globally via uv |
51+
| `setup-dev` | Bootstrap dev environment and install pre-commit hooks |
52+
| `setup-prod` | Set up the project environment |
53+
| `test` | Run tests with pytest |
54+
| `tox` | Run tests across multiple Python versions |
55+
| `upgrade` | Upgrade all dependencies to latest compatible versions |
3856

3957
For the full list and task definitions, see [`mise.toml`](https://github.com/bassemkaroui/python-template-uv/blob/main/template/mise.toml.jinja).

0 commit comments

Comments
 (0)