-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (42 loc) · 1.26 KB
/
Makefile
File metadata and controls
56 lines (42 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
clean: clean-pyc clean-test clean-uv clean-lint-and-formatter
quality: set-style-dep check-quality
style: set-style-dep set-style
setup: set-git set-dev set-style-dep set-test-dep set-precommit
test: set-test-dep set-test
##### basic #####
set-git:
git config --local commit.template .gitmessage
set-style-dep:
uv sync --only-group quality --frozen --no-install-project --inexact
set-test-dep:
uv sync --only-group test --frozen --no-install-project --inexact
set-precommit:
uv run --frozen pre-commit install
set-dev:
uv sync --frozen --no-install-project
set-test:
uv run --frozen --only-group test pytest --force-sugar tests/
set-style:
uv run --frozen --only-group quality ruff check --fix .
uv run --frozen --only-group quality ruff format .
check-quality:
uv run --frozen --only-group quality ruff check .
uv run --frozen --only-group quality ruff format --check .
check-lock:
uv lock --check
##### clean #####
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test:
rm -f .coverage
rm -f .coverage.*
rm -rf .pytest_cache
rm -rf .mypy_cache
clean-lint-and-formatter:
rm -rf .ruff_cache
clean-uv:
uv cache clean
uv cache prune