-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (32 loc) · 942 Bytes
/
makefile
File metadata and controls
44 lines (32 loc) · 942 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
36
37
38
39
40
41
42
43
44
sources = earth2grid
.PHONY: test format lint unittest coverage pre-commit clean
test: format lint unittest
.PHONY: license
license:
python tests/_license/header_check.py
format: license
ruff check --fix $(sources) tests
black $(sources) tests
lint: license
pre-commit run --all-files
unittest:
coverage run --source earth2grid/ -m pytest
# requires vtk so don't run in ci
# coverage run --source earth2grid/ -a -m pytest --doctest-modules earth2grid/ -vv
coverage:
coverage report
pre-commit:
pre-commit run --all-files
clean:
rm -rf .mypy_cache .pytest_cache
rm -rf *.egg-info
rm -rf .tox dist site
rm -rf coverage.xml .coverage
.PHONY: docs
docs:
# without setting the MPLBACKEND the build will stall on the pyvista
$(MAKE) -C docs html
push_docs: docs
docs/push_docs.sh
build_wheels:
CIBW_BEFORE_BUILD="pip install numpy torch==2.7.0" python -m cibuildwheel --output-dir dist/ --platform linux --archs x86_64