forked from trevorbaca/baca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (56 loc) · 1.01 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
57
58
59
60
61
62
63
64
65
66
67
black-check:
black --check --diff .
black-reformat:
black .
flake_exclude = --exclude=baca/__init__.py
flake_ignore = --ignore=E203,E266,E501,W503
flake_options = --isolated --max-line-length=88
flake8:
flake8 ${flake_exclude} ${flake_ignore} ${flake_options}
isort-check:
isort \
--case-sensitive \
--check-only \
--line-width=88 \
--multi-line=3 \
--project=abjad \
--project=abjadext \
--skip=baca/__init__.py \
--thirdparty=ply \
--thirdparty=uqbar \
--trailing-comma \
--use-parentheses \
baca scr
isort-reformat:
isort \
--case-sensitive \
--line-width=88 \
--multi-line=3 \
--project=abjad \
--project=abjadext \
--skip=baca/__init__.py \
--thirdparty=ply \
--thirdparty=uqbar \
--trailing-comma \
--use-parentheses \
baca scr
mypy:
mypy baca
pytest:
pytest baca
pytest-x:
pytest -x baca
reformat:
make black-reformat
make isort-reformat
check:
make black-check
make flake8
make isort-check
make mypy
test:
make black-check
make flake8
make isort-check
make mypy
make pytest