-
Notifications
You must be signed in to change notification settings - Fork 46
/
Makefile
36 lines (31 loc) · 889 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
## Lint code using ruff
.PHONY: lint
lint:
@echo "\n################\n Running ruff \n################\n"
python -m ruff --version
python -m ruff scalpel --exit-zero
@echo "\n################\n Running isort \n################\n"
python -m isort scalpel
## Format code using black
.PHONY: black
black:
@echo "\n################\n Running black \n################\n"
python -m black --version
python -m black scalpel
## Run tests using pytest
.PHONY: pytest
pytest:
@echo "\n################\n Running tests (pytest) \n################\n"
python -m pytest --version
python -m pytest tests
## Run tests using unittest
.PHONY: unittest
unittest:
@echo "\n################\n Running tests (unittest) \n################\n"
python -m unittest discover -v -s ./tests -p "test_*.py"
## Run all tests
.PHONY: test
test: pytest unittest
## Run all
.PHONY: all
all: lint black test