-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscripts.sh
More file actions
35 lines (28 loc) · 704 Bytes
/
scripts.sh
File metadata and controls
35 lines (28 loc) · 704 Bytes
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
#!/bin/bash
function deploy() {
poetry install && poetry build && poetry publish
}
function increment_minor() {
current_version=$(poetry version | awk '{ print $NF }')
poetry version minor
next_version=$(poetry version | awk '{ print $NF }')
git commit -am "Increment minor version [${current_version} -> ${next_version}]"
}
function fmt() {
poetry run black .
}
function lint() {
poetry run flake8 .
}
function mypy() {
poetry run python -m mypy envcon
}
function mypy_all() {
poetry run python -m mypy envcon tests \
--show-error-codes \
--disallow-untyped-calls \
--disallow-untyped-defs \
--disallow-incomplete-defs \
--disallow-untyped-decorators
}
"$@"