-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 682 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (24 loc) · 682 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
34
35
LIB = shapely_geo
check: lint typecheck test doctest
build: typecheck test
python -m build
lint:
ruff check $(LIB)
format:
ruff format $(LIB)
test:
pytest --disable-warnings
typecheck:
mypy $(LIB)/ --config-file pyproject.toml
doctest:
pytest --doctest-modules $(LIB)
coverage:
pytest --cov-report html --cov=$(LIB) tests/
docs: FORCE
mkdocs build
clean:
python -c "import shutil; shutil.rmtree('dist', ignore_errors=True)"
python -c "import shutil; shutil.rmtree('htmlcov', ignore_errors=True)"
python -c "import os; os.remove('.coverage') if os.path.exists('.coverage') else None"
python -c "import shutil; shutil.rmtree('site', ignore_errors=True)"
FORCE: