-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (16 loc) · 763 Bytes
/
Makefile
File metadata and controls
22 lines (16 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CODE_FOLDERS := src
UNIT_TEST_FOLDERS := unit_tests
FUNC_TEST_FOLDER := func_tests
.PHONY: unit_tests format lint security_checks func_tests
unit_tests:
poetry run pytest $(TEST_FOLDER) --cov=$(CODE_FOLDERS) --ignore=${FUNC_TEST_FOLDER} --cov-fail-under=80
format:
poetry run black --line-length 79 .
lint:
poetry run black --line-length 79 --check $(CODE_FOLDERS) $(UNIT_TEST_FOLDERS) $(FUNC_TEST_FOLDER)
poetry run flake8 $(CODE_FOLDERS) $(UNIT_TEST_FOLDERS) $(FUNC_TEST_FOLDER)
poetry run ruff check $(CODE_FOLDERS) $(UNIT_TEST_FOLDERS) $(FUNC_TEST_FOLDER)
security_checks:
poetry run bandit -r $(CODE_FOLDERS)
func_tests:
poetry run pytest $(FUNC_TEST_FOLDER) --cov=$(CODE_FOLDERS) --ignore=${TEST_FOLDER} --cov-fail-under=80