forked from secure-software-engineering/TypeEvalPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (26 loc) · 692 Bytes
/
Makefile
File metadata and controls
30 lines (26 loc) · 692 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
## 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 all tests
.PHONY: test
test: pytest
## Run all
.PHONY: all
all: lint black test