|
a |
|
b/Makefile |
|
|
1 |
.PHONY: build install |
|
|
2 |
|
|
|
3 |
requirements: |
|
|
4 |
python -m pip install -r requirements.txt |
|
|
5 |
|
|
|
6 |
requirements-mamba: |
|
|
7 |
mamba install --file requirements.txt |
|
|
8 |
|
|
|
9 |
requirements-conda: |
|
|
10 |
conda install --file requirements.txt |
|
|
11 |
|
|
|
12 |
build: |
|
|
13 |
python -m build -o wheelhouse |
|
|
14 |
|
|
|
15 |
install: |
|
|
16 |
pip install . |
|
|
17 |
|
|
|
18 |
install-dev: |
|
|
19 |
pip install --editable . |
|
|
20 |
|
|
|
21 |
coverage: |
|
|
22 |
coverage run -m pytest |
|
|
23 |
# Make the html version of the coverage results. |
|
|
24 |
coverage html |
|
|
25 |
|
|
|
26 |
dev: |
|
|
27 |
python -m pip install --upgrade -r requirements-dev.txt |
|
|
28 |
|
|
|
29 |
dev-mamba: |
|
|
30 |
mamba install --file requirements-dev.txt |
|
|
31 |
|
|
|
32 |
dev-conda: |
|
|
33 |
conda install --file requirements-dev.txt |
|
|
34 |
|
|
|
35 |
docs: |
|
|
36 |
pdoc --output-dir docs/ --html --force pymskt |
|
|
37 |
mv docs/pymskt/* docs/ |
|
|
38 |
rm -rf docs/pymskt |
|
|
39 |
|
|
|
40 |
test: |
|
|
41 |
set -e |
|
|
42 |
pytest |
|
|
43 |
|
|
|
44 |
lint: |
|
|
45 |
set -e |
|
|
46 |
isort -c . |
|
|
47 |
black --check --config pyproject.toml . |
|
|
48 |
|
|
|
49 |
autoformat: |
|
|
50 |
set -e |
|
|
51 |
isort . |
|
|
52 |
black --config pyproject.toml . |