Skip to content

Commit cee4077

Browse files
committed
update/add task descriptions
1 parent f163e08 commit cee4077

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

project_name/justfile.jinja

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,26 @@ update-deps:
1717
uv sync --upgrade
1818
uv run pre-commit autoupdate -j "$(nproc)"
1919

20-
# Initialize the project after cloning
20+
# Setup the project. Needed after cloning
2121
prepare:
2222
uv run pre-commit install
2323

24-
# Run code quality checks, than push
2524
check-and-push:
2625
@just check
2726
git push
2827

29-
# Format and check code
3028
format-and-check:
3129
@just format
3230
@just check
3331

34-
# Run all code quality checks and tests
32+
# Run all code quality checks and tests, except pylint
3533
check:
3634
# only pytest and mypy are not in the pre-commit hooks
3735
uv run pytest
3836
uv run mypy
3937
uv run pre-commit run --all-files
4038

39+
# Format code and files
4140
format:
4241
just isort
4342
{%- if format_tool == "black" %}
@@ -51,15 +50,19 @@ format:
5150
uv run pre-commit run --all-files nbstripout
5251
{%- endif %}
5352

53+
# Sort imports (using ruff)
5454
isort:
5555
uv run ruff check --select I001 --fix
5656

57+
# Run linters: ruff and mypy
5758
lint:
5859
uv run ruff check
5960
uv run mypy
6061

62+
# Run Pylint, might be slow
6163
pylint:
6264
uv run --with pylint pylint src
6365

66+
# Run tests with pytest
6467
test:
6568
uv run pytest

0 commit comments

Comments
 (0)