-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
24 lines (17 loc) · 819 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
PRJ_NAME=latex_proj_tool
lint:
python3 -m pylint ${PRJ_NAME} --rcfile=tests/lint/pylintrc
type:
# intall-types is the new feature since mypy 0.900 that installs missing stubs.
python3 -m mypy ${PRJ_NAME} --ignore-missing-imports --install-types --non-interactive
format:
python3 -m black -l 100 `git diff --name-only --diff-filter=ACMRTUX origin/main -- "*.py" "*.pyi"` ${PRJ_NAME}
check_format:
python3 -m black -l 100 --check `git diff --name-only --diff-filter=ACMRTUX origin/main -- "*.py" "*.pyi"` ${PRJ_NAME}
test:
python3 -m pytest --lf
clean:
rm -rf .coverage* *.xml *.log *.pyc *.egg-info tests/temp* test_* tests/*.pdf curr *.db
find . -name "__pycache__" -type d -exec rm -r {} +
find . -name ".pytest_cache" -type d -exec rm -r {} +
find . -name ".pkl_memoize_py3" -type d -exec rm -r {} +