-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlint.mk
70 lines (54 loc) · 1.02 KB
/
lint.mk
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Make commands for linting
SHELL := /bin/bash -euxo pipefail
.PHONY: black
black:
black --check .
.PHONY: fix-black
fix-black:
black .
.PHONY: mypy
mypy:
mypy .
.PHONY: check-manifest
check-manifest:
check-manifest .
.PHONY: doc8
doc8:
doc8 .
.PHONY: flake8
flake8:
flake8 .
.PHONY: isort
isort:
isort --check-only .
.PHONY: fix-isort
fix-isort:
isort .
.PHONY: pip-extra-reqs
pip-extra-reqs:
pip-extra-reqs --requirements-file=requirements/requirements.txt src/
.PHONY: pip-missing-reqs
pip-missing-reqs:
pip-missing-reqs --requirements-file=requirements/requirements.txt src/
.PHONY: pylint
pylint:
pylint *.py src/ tests/
.PHONY: pyroma
pyroma:
pyroma --min 10 .
.PHONY: vulture
vulture:
vulture --min-confidence 100 --exclude _vendor --exclude .eggs .
.PHONY: autoflake
autoflake:
autoflake \
--in-place \
--recursive \
--remove-all-unused-imports \
--remove-unused-variables \
--expand-star-imports \
--exclude _vendor,release \
.
.PHONY: pydocstyle
pydocstyle:
pydocstyle