-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
38 lines (28 loc) · 723 Bytes
/
Copy pathmakefile
File metadata and controls
38 lines (28 loc) · 723 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
36
37
38
sources = bonfo
prun = poetry run
.PHONY: test format lint unittest coverage pre-commit clean docs
test: format lint unittest
format:
${prun} isort $(sources) tests
${prun} black $(sources) tests
# ${prun} autoflake8 -r -i --ignore-init-module-imports $(sources) tests
lint:
${prun} flake8 $(sources) tests
${prun} mypy $(sources)
unittest:
${prun} pytest
coverage:
${prun} pytest --cov=$(sources) --cov-branch --cov-report=term-missing tests
pre-commit:
pre-commit run --all-files
clean:
rm -rf .mypy_cache .pytest_cache
rm -rf *.egg-info
rm -rf .tox dist site
rm -rf coverage.xml .coverage
docs:
${prun} mkdocs build
docs-serve:
${prun} mkdocs serve
install:
poetry install -E doc -E test -E dev