-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathjustfile
47 lines (35 loc) · 829 Bytes
/
justfile
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
# List all recipes.
default:
@just --list
# Build docs.
docs:
rm -rf ./docs/build docs/source/_autosummary
make -C docs html
echo Docs are in $PWD/docs/build/html/index.html
# Install development environment.
dev:
pip install -e '.[dev]'
mamba install -y -c conda-forge openff-toolkit openmm openmmtools rdkit==2024.3.4 dgl espaloma_charge
mamba install -y xtb
mamba install -y openbabel
mamba install -y mdanalysis
# Run code checks.
check:
#!/usr/bin/env bash
error=0
trap error=1 ERR
echo
(set -x; ruff check . )
echo
( set -x; ruff format --check . )
echo
( set -x; mypy src examples )
echo
( set -x; pytest --cov=stko --cov-report term-missing )
echo
( set -x; make -C docs doctest )
test $error = 0
# Auto-fix code issues.
fix:
ruff format .
ruff check --fix .