-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (37 loc) · 904 Bytes
/
Makefile
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
clean: clean-pyc clean-test
quality: set-style-dep check-quality
style: set-style-dep set-style
setup: set-precommit set-style-dep set-test-dep set-git set-dev
test: set-test-dep set-test
##### basic #####
set-git:
git config --local commit.template .gitmessage
set-style-dep:
pip3 install ruff==0.7.2
set-test-dep:
pip3 install pytest==8.3.2
set-precommit:
pip3 install pre-commit==4.0.1
pre-commit install
set-dev:
pip3 install -r ./requirements.txt
set-test:
python3 -m pytest tests/
set-style:
ruff check --fix .
ruff format .
check-quality:
ruff check .
ruff format --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
rm -rf .ruff_cache