-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
45 lines (40 loc) · 916 Bytes
/
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
.PHONY: hooks
hooks:
pre-commit run --all-files
.PHONY: format
format:
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports .
ruff check --fix .
black .
isort .
.PHONY: lint
lint:
ruff check .
flake8 .
pylint src/tomodachi_testcontainers tests
mypy src tests
mypy --config examples/pyproject.toml examples
mypy --config docs_src/pyproject.toml docs_src
bandit -r src examples
pydocstringformatter --style=pep257 --style=numpydoc .
.PHONY: test
test:
pytest -v
.PHONY: test-docs-src
test-docs-src:
pytest -v docs_src
.PHONY: test-ci
test-ci:
env TOMODACHI_TESTCONTAINER_EXPORT_COVERAGE=1 \
pytest \
--cov \
--cov-append \
--cov-branch \
--cov-report=xml:build/coverage.xml \
--cov-report=html:build/htmlcov \
-v \
--junitxml=build/tests.xml \
-n auto \
--force-flaky \
--max-runs=3 \
--no-success-flaky-report