forked from antonagestam/collectfast
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
47 lines (34 loc) · 887 Bytes
/
Makefile
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
SHELL := /usr/bin/env bash
docker-up:
docker compose up -d --wait
test:
pytest -svv
test-docker: docker-up
pytest -svv; docker compose down
test-docker-all: docker-up
pytest -x --speedtest -svv; docker compose down
test-docker-ff: docker-up
pytest -svv -x; docker compose down
test-speed: docker-up
pytest -x --speedtest -m speed_test -svv; docker compose down
test-skip-live:
SKIP_LIVE_TESTS=true pytest
test-coverage:
coverage run --source collectfasta -m pytest
clean:
rm -rf Collectfasta.egg-info __pycache__ build dist
build: clean
python3 -m pip install --upgrade wheel twine setuptools
python3 setup.py sdist bdist_wheel
distribute: build
python3 -m twine upload dist/*
test-distribute: build
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
lint:
flake8
sorti --check .
black --check .
mypy .
format:
sorti .
black .