-
-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 556 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 556 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
checkfiles = synch/ tests/ conftest.py
black_opts = -l 100 -t py38
py_warn = PYTHONDEVMODE=1
up:
@poetry update
deps:
@poetry install --no-root
style: deps
isort -src $(checkfiles)
black $(black_opts) $(checkfiles)
check: deps
black --check $(black_opts) $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
flake8 $(checkfiles)
bandit -x tests -r $(checkfiles) -s B608
test: deps
$(py_warn) pytest
build: deps
@poetry build
ci: check test
act:
@act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -b