-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
41 lines (34 loc) · 955 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
venv:
python3.8 -m venv venv
pre-checks-deps: venv
venv/bin/pip install flake8
venv/bin/pip install black
venv/bin/pip install isort
venv/bin/pip install mypy
pre-checks: pre-checks-deps
venv/bin/flake8 freddy --config=setup.cfg
venv/bin/flake8 tests --config=setup.cfg
venv/bin/mypy freddy --ignore-missing-imports
venv/bin/mypy tests --ignore-missing-imports
venv/bin/isort -c -rc freddy
venv/bin/isort -c -rc tests
venv/bin/black --check --verbose freddy
venv/bin/black --check --verbose tests
develop: venv
venv/bin/pip install -e .[test]
venv/bin/pip install pre-commit
venv/bin/pre-commit install
tests: venv develop
venv/bin/pytest -rfE -s --tb=native -v tests/
package: venv
venv/bin/python setup.py sdist
venv/bin/pip install twine
venv/bin/twine upload dist/*
clean:
rm -rf venv
rm -rf dist
rm -rf *.egg-info
snippets: develop
venv/bin/pip install ipython
venv/bin/pip install aiohttp
venv/bin/pip install pdbpp