forked from facebookincubator/Bowler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
36 lines (28 loc) · 782 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
venv:
python -m venv .venv
@echo 'run `source .venv/bin/activate` to use virtualenv'
setup:
python -m pip install -Ur requirements.txt
python -m pip install -Ur requirements-dev.txt
dev: venv
source .venv/bin/activate && make setup
source .venv/bin/activate && python setup.py develop
@echo 'run `source .venv/bin/activate` to develop bowler'
release: lint test clean
python setup.py sdist bdist_wheel
python -m twine upload dist/*
format:
isort bowler setup.py
black bowler setup.py
lint:
/bin/bash scripts/check_copyright.sh
isort --check bowler setup.py
black --check bowler setup.py
mypy -p bowler
test:
python -m coverage run -m bowler.tests
python -m coverage report
clean:
rm -rf build dist README MANIFEST *.egg-info
distclean: clean
rm -rf .venv