-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
55 lines (41 loc) · 1.54 KB
/
makefile
File metadata and controls
55 lines (41 loc) · 1.54 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
44
45
46
47
48
49
50
51
52
53
54
55
.PHONY: help install lint format pytest mypy mypy-types docs download-structures
help:
@echo "Available commands:"
@echo " install Install source code in environment"
@echo " install-editable Install source code in environment in editable mode"
@echo " install-all Install source code in environment and all dependencies"
@echo " install-editable-all Install source code in environment and all dependencies in editable mode"
@echo " lint Run linters using pre-commit"
@echo " format Run formatters using pre-commit"
@echo " pytest Run tests using pytest"
@echo " mypy Run type-checking using mypy"
@echo " mypy-types Install missing types using mypy"
@echo " docs Generate documentation using pdoc"
@echo " download-structures Run supramolsim.download:download_suggested_structures"
@echo " package Builds python package"
install:
pip install .
install-editable:
pip install --editable .
install-all:
pip install ".[dev, test]"
install-editable-all:
pip install --editable ".[dev, test]"
lint:
pre-commit run ruff --all-files
format:
pre-commit run ruff-format --all-files
pytest:
pytest --cov=vlab4mic --cov-report=xml
mypy:
mypy --ignore-missing-imports src
mypy-types:
mypy --install-types
docs:
rm -rf docs
pdoc src/vlab4mic -o docs
download-structures:
download-structures
.DEFAULT_GOAL := help
package:
python -m build