-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 754 Bytes
/
Makefile
File metadata and controls
33 lines (27 loc) · 754 Bytes
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
clean: clean-pyc clean-test
quality: set-style-dep check-quality
style: set-style-dep set-style
##### basic #####
set-git:
git config --local commit.template .gitmessage
set-style-dep:
pip3 install click==8.0.4 isort==5.9.3 black==21.7b0 flake8==3.9.2
set-style:
black --config pyproject.toml .
isort --settings-path pyproject.toml .
flake8 .
check-quality:
black --config pyproject.toml --check .
isort --settings-path pyproject.toml --check-only .
flake8 .
##### 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