-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
56 lines (41 loc) · 1.21 KB
/
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
48
49
50
51
52
53
54
55
56
.PHONY: black-check black-reformat build clean flake8 install isort-check \
isort-reformat mypy pytest reformat release lint test
black-check:
black --check --diff .
black-reformat:
black .
build:
python setup.py sdist
clean:
find . -name '*.pyc' -delete
rm -rf __pycache__ *.egg-info .cache .tox build dist htmlcov prof
flake_ignore = --ignore=E203,E266,E501,W503
flake_options = --isolated --max-line-length=88
flake8:
flake8 ${flake_ignore} ${flake_options}
isort-check:
isort --case-sensitive --check-only --line-width=88 --multi-line=3 \
--thirdparty=abjad --thirdparty=abjadext --thirdparty=baca \
--thirdparty=ply --thirdparty=uqbar --trailing-comma --use-parentheses .
isort-reformat:
isort --case-sensitive --line-width=88 --multi-line=3 \
--thirdparty=abjad --thirdparty=abjadext --thirdparty=baca \
--thirdparty=ply --thirdparty=uqbar --trailing-comma --use-parentheses .
mypy:
mypy .
pytest:
pytest .
pytest-coverage:
rm -Rf htmlcov/
pytest \
--cov-config=.coveragerc \
--cov-report=html \
--cov=abjadext \
.
reformat: black-reformat isort-reformat
release:
make clean
make build
twine upload dist/*.tar.gz
lint: black-check flake8 isort-check mypy
test: lint pytest