File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff 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
2121prepare:
2222 uv run pre-commit install
2323
24- # Run code quality checks, than push
2524check-and-push:
2625 @just check
2726 git push
2827
29- # Format and check code
3028format-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
3533check:
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
4140format:
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)
5454isort:
5555 uv run ruff check --select I001 --fix
5656
57+ # Run linters: ruff and mypy
5758lint:
5859 uv run ruff check
5960 uv run mypy
6061
62+ # Run Pylint, might be slow
6163pylint:
6264 uv run --with pylint pylint src
6365
66+ # Run tests with pytest
6467test:
6568 uv run pytest
You can’t perform that action at this time.
0 commit comments