-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
47 lines (41 loc) · 1.23 KB
/
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 available commands
default:
just --list
# clean all build, python, and lint files
clean:
rm -fr build/
rm -fr docs/_build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
rm -fr .tox/
rm -fr .coverage
rm -fr coverage.xml
rm -fr htmlcov/
rm -fr .pytest_cache
rm -fr .mypy_cache
# lint, format, and check all files
lint:
tox -e lint
# run tox / run tests and lint
build:
tox
# generate Sphinx HTML documentation
generate-docs:
rm -f docs/aicsimageio_ometiffreader*.rst
rm -f docs/modules.rst
sphinx-apidoc -o docs/ aicsimageio_ometiffreader **/tests/
python -msphinx "docs/" "docs/_build/"
touch docs/_build/.nojekyll
# generate Sphinx HTML documentation and serve to browser
serve-docs:
just generate-docs
python -mwebbrowser -t file://{{justfile_directory()}}/docs/_build/index.html
# update this repo using latest cookiecutter-py-package
update-from-cookiecutter:
cookiecutter gh:evamaxfield/cookiecutter-py-package --config-file .cookiecutter.yaml --no-input --overwrite-if-exists --output-dir ..