File tree Expand file tree Collapse file tree 4 files changed +45
-27
lines changed
Expand file tree Collapse file tree 4 files changed +45
-27
lines changed Original file line number Diff line number Diff line change 11[Uu]ntitled*
22scratch*
3+ {{ _copier_conf.answers_file }}
34# Windows thumbnail cache files
45Thumbs.db
56Thumbs.db:encryptable
@@ -64,6 +65,7 @@ pip-log.txt
6465pip-delete-this-directory.txt
6566
6667# Unit test / coverage reports
68+ lcov.info
6769htmlcov/
6870.tox/
6971.nox/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ module_name := "{{module_name}}"
2+
3+ default:
4+ @just --list
5+
6+ # setup for development
7+ setup: install git-setup
8+
9+ # install the packages
10+ install:
11+ {% raw %} {{if path_exists("uv.lock") != "true" {"uv sync --dev --all-extras --inexact"} else {"uv sync --dev --all-extras --locked --inexact"} }}{% endraw %}
12+
13+ # ensure code quality before git commit via pre-commit and nbwipers
14+ git-setup: install
15+ uv run nbwipers install local
16+ uv run pre-commit install --install-hooks
17+
18+ # run test coverage and create
19+ test-cov:
20+ uv run pytest --cov {% raw %} {{module_name}}{% endraw %} --cov-report=lcov:lcov.info --cov-report=term-missing --cov-report html --cov-report xml
21+
22+ # format and sort imports
23+ format:
24+ uv run ruff check --fix --select=I001 .
25+ uv run ruff format .
26+
27+ # autofix with ruff
28+ autofix:
29+ uv run ruff --fix --show-fixes .
30+
31+ # lint with ruff
32+ lint:
33+ uv run ruff check --output-format=full .
34+
35+ # update packages and uv lock file
36+ update:
37+ uv sync -U --dev --all-extras --inexact
38+
39+ # update pre-commit file
40+ pc-update:
41+ uvx pre-commit-update
Original file line number Diff line number Diff line change 1+ # Changes here will be overwritten by Copier
2+ {{ _copier_answers|to_nice_yaml -}}
You can’t perform that action at this time.
0 commit comments