-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (28 loc) · 907 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
###############################################################################
# COMMANDS
###############################################################################
.PHONY: clean
## Clean python cache file.
clean:
find . -name '*.pyo' -delete
find . -name '*.pyc' -delete
find . -name __pycache__ -delete
find . -name '*~' -delete
find . -name .coverage -delete
find . -name 'coverage.*' -delete
find . -name 'requirements*.txt' -delete
find . -name 'ruff.log' -delete
find . -type d -name .pytest_cache -exec rm -r {} +
find . -type d -name .ruff_cache -exec rm -r {} +
find . -type d -name .mypy_cache -exec rm -r {} +
find . -type d -name dist -exec rm -r {} +
find . -type d -name build -exec rm -r {} +
.PHONY: lint
## pylint check
lint:
ruff check src/rcnn --show-source --show-fixes \
--exit-zero
.PHONY: test
test:
PYTHONPATH=src \
pytest -s -v tests > coverage.txt