-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBruce.ini
51 lines (40 loc) · 902 Bytes
/
Bruce.ini
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
[glob:py]
fingerprintingstrategy = content
glob = **/*.py
exclude = .*venv.*,\.bruce/.*
[file:reqs]
fingerprintingstrategy = content
path = requirements.txt
[file:venv]
path = venv
[task:clean]
cmd = rm -rf venv/ __pycache__/ build/ dist/ *egg*
watch = venv
[task:init]
cmd = python3 -m venv venv
watch = venv
[task:deps]
cmd = venv/bin/pip install -r requirements.txt
watch = reqs
upstream = init
[task:black]
cmd = venv/bin/black src/python --exclude venv bruce.py
watch = py
upstream = deps
[task:isort]
cmd = venv/bin/isort --skip venv -rc -y src/python bruce.py
watch = py
upstream = deps
[task:mypy]
cmd = venv/bin/mypy --strict src/python/bruce/*/*.py bruce.py
watch = py
upstream = black, isort
[group:qa]
upstream = mypy,black,isort
[task:wheel]
upstream = deps
watch = py
cmd = venv/bin/python setup.py bdist_wheel
[task:publish]
upstream = wheel
cmd = venv/bin/twine upload dist/*