-
Notifications
You must be signed in to change notification settings - Fork 48
/
Makefile
30 lines (28 loc) · 879 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
.PHONY: build install test isort black flake8 pyupgrade typecheck bandit lint security poetry-check docs
POETRY := poetry
PRECOMMIT := pre-commit
build:
$(POETRY) build
install:
$(POETRY) install
test:
$(POETRY) run pytest
isort:
$(PRECOMMIT) run isort --all-files --show-diff-on-failure
black:
$(PRECOMMIT) run black --all-files --show-diff-on-failure
flake8:
$(PRECOMMIT) run flake8 --all-files --show-diff-on-failure
pyupgrade:
$(PRECOMMIT) run pyupgrade --all-files --show-diff-on-failure
typecheck:
$(POETRY) run mypy aiosmtplib
bandit:
$(POETRY) run bandit -n 10 -x tests ./
poetry-check:
$(POETRY) check
lint: flake8 isort black pyupgrade poetry-check
security: bandit
docs:
$(POETRY) run sphinx-build -nWT -b doctest -d ./docs/build/doctrees ./docs ./docs/build/html
$(POETRY) run sphinx-build -nWT -b html -d ./docs/build/doctrees ./docs ./docs/build/html