-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (37 loc) · 959 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
.PHONY: clean clean-build clean-pyc clean-test clean-misc lint test
# remove all build, test, coverage and Python artifacts
clean: clean-build clean-pyc clean-test clean-misc
# remove build artifacts
clean-build:
rm -fr build/
rm -fr dist/
rm -fr wheelhouse/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
# remove Python file artifacts
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 {} +
# remove test and coverage artifacts
clean-test:
rm -f .coverage
rm -f coverage.xml
rm -rf htmlcov/
rm -rf .tox/
rm -rf .pytest_cache/
# remove other artifacts
clean-misc:
rm -rf .ruff_cache/
rm -rf .mypy_cache/
# lint the package
lint:
black --check .
ruff check .
pyright
# test the package
test: clean
python Tests/test_imports.py -v
python Tests/test_base_structures.py -v