-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
58 lines (49 loc) · 1.38 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
48
49
50
51
52
53
54
55
56
57
58
# list all available commands
default:
just --list
# clean all build, python, and lint files
clean:
rm -fr 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 .coverage
rm -fr coverage.xml
rm -fr htmlcov
rm -fr .pytest_cache
rm -fr .mypy_cache
# install with all deps
install:
pip install -e .[lint,test]
pre-commit install
# install dependencies, setup pre-commit, download test resources
setup-dev:
just install
pre-commit install
python scripts/download_test_resources.py
# lint, format, and check all files
lint:
pre-commit run --all-files
# run tests
test:
pytest --cov-report xml --cov-report html --cov=bioio_bioformats bioio_bioformats/tests
# run lint and then run tests
build:
just lint
just test
# tag a new version
tag-for-release version:
git tag -a "{{version}}" -m "{{version}}"
echo "Tagged: $(git tag --sort=-version:refname| head -n 1)"
# release a new version
release:
git push --follow-tags
# update this repo using latest cookiecutter-bioio-reader
update-from-cookiecutter:
pip install cookiecutter
cookiecutter gh:bioio-devs/cookiecutter-bioio-reader --config-file .cookiecutter.yaml --no-input --overwrite-if-exists --output-dir ..