-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (35 loc) · 1.16 KB
/
Copy pathMakefile
File metadata and controls
43 lines (35 loc) · 1.16 KB
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
PROJECT := earthkit-transforms
COV_REPORT := html
NBSPHINX_EXECUTE := auto
default: qa unit-tests
qa:
pre-commit run --all-files
unit-tests:
python -m pytest -vv --cov=. --cov-report=$(COV_REPORT) --ignore=tests/legacy-api
legacy-api-unit-tests:
python -m pytest -vv \
tests/legacy-api \
--cov=. \
--cov-report=$(COV_REPORT)
type-check:
python -m mypy . --no-namespace-packages
docs-build:
cd docs && make clean && make html SPHINXOPTS="-D nbsphinx_execute=$(NBSPHINX_EXECUTE)"
clean-pip-env:
rm -rf .venv
python3 -m venv .venv
.venv/bin/pip install --upgrade pip setuptools wheel pre-commit mypy
.venv/bin/pip install -e ".[docs]"
.venv/bin/pre-commit install --install-hooks
echo to activate the environment, run: . .venv/bin/activate
clean-uv-env:
rm -rf .venv
uv venv --python 3.13 .venv
uv pip install -e ".[docs]"
uv pre-commit install --install-hooks
echo to activate the environment, run: . .venv/bin/activate
clean-conda-env:
conda create -y -p ./.conda -c conda-forge python=3.13
conda run -p ./.conda pip install -e ".[docs]"
conda run -p ./.conda pre-commit install --install-hooks
echo to activate the environment, run: conda activate ./.conda