Skip to content

Commit f03d05e

Browse files
committed
Makefile
1 parent b2fa1f4 commit f03d05e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Makefile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.DEFAULT: help
2+
3+
help:
4+
@echo "make install"
5+
@echo " install all dependencies specified in pyproject.toml"
6+
@echo "make lint"
7+
@echo " run flake8 checks"
8+
@echo "make format"
9+
@echo " run isort and black to format code"
10+
@echo "make check"
11+
@echo " run all code quality checks (format + lint)"
12+
@echo "make test"
13+
@echo " run pytest"
14+
@echo "make all"
15+
@echo " run format, lint, and test"
16+
@echo "make help"
17+
@echo " print this help message"
18+
19+
install:
20+
poetry install
21+
22+
lint:
23+
poetry run flake8 . --max-line-length=120 --exclude=.venv,.git,__pycache__
24+
25+
format:
26+
poetry run isort .
27+
poetry run black .
28+
29+
check: format lint
30+
31+
test:
32+
poetry run pytest tests/
33+
34+
all: format lint test
35+
36+
.PHONY: help install lint format check test all

0 commit comments

Comments
 (0)