-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 736 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 736 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
PIP = pip3
PYTHON = python3
.PHONY = help ci-lint coverage lint format setup test
.DEFAULT_GOAL = help
help:
@echo "---------------HELP-----------------"
@echo "To install the project type make setup"
@echo "To run the tests type make test"
@echo "To lint the project type make lint"
@echo "To auto-format the project type make format"
@echo "To check coverage type make coverage"
@echo "------------------------------------"
setup:
${PIP} install -e ".[test,lint]"
test:
${PYTHON} -m unittest -v castle.test
lint:
ruff check castle
ruff format --check castle
ci-lint: lint
format:
ruff check --fix castle
ruff format castle
coverage:
${PIP} install coverage
coverage run -m unittest castle.test
coverage report