File tree Expand file tree Collapse file tree 1 file changed +88
-0
lines changed Expand file tree Collapse file tree 1 file changed +88
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Make commands for linting
2
+
3
+ SHELL := /bin/bash -euxo pipefail
4
+
5
+ .PHONY : yapf
6
+ yapf :
7
+ yapf \
8
+ --diff \
9
+ --recursive \
10
+ --exclude versioneer.py \
11
+ --exclude src/* /_version.py \
12
+ .
13
+
14
+ .PHONY : fix-yapf
15
+ fix-yapf :
16
+ yapf \
17
+ --in-place \
18
+ --recursive \
19
+ --exclude versioneer.py \
20
+ --exclude src/* /_version.py \
21
+ .
22
+
23
+ .PHONY : mypy
24
+ mypy :
25
+ mypy * .py src/ tests/ docs/source/
26
+
27
+ .PHONY : check-manifest
28
+ check-manifest :
29
+ check-manifest .
30
+
31
+ .PHONY : doc8
32
+ doc8 :
33
+ doc8 .
34
+
35
+ .PHONY : flake8
36
+ flake8 :
37
+ flake8 .
38
+
39
+ .PHONY : isort
40
+ isort :
41
+ isort --recursive --check-only
42
+
43
+ .PHONY : pip-extra-reqs
44
+ pip-extra-reqs :
45
+ pip-extra-reqs src/
46
+
47
+ .PHONY : pip-missing-reqs
48
+ pip-missing-reqs :
49
+ pip-missing-reqs src/
50
+
51
+ .PHONY : pylint
52
+ pylint :
53
+ pylint * .py src/ tests/ admin/ docs/
54
+
55
+ .PHONY : pyroma
56
+ pyroma :
57
+ pyroma --min 10 .
58
+
59
+ .PHONY : vulture
60
+ vulture :
61
+ vulture --min-confidence 100 --exclude _vendor .
62
+
63
+ .PHONY : linkcheck
64
+ linkcheck :
65
+ $(MAKE ) -C docs/ linkcheck SPHINXOPTS=$(SPHINXOPTS )
66
+
67
+ .PHONY : spelling
68
+ spelling :
69
+ $(MAKE ) -C docs/ spelling SPHINXOPTS=$(SPHINXOPTS )
70
+
71
+ .PHONY : shellcheck
72
+ shellcheck :
73
+ shellcheck --exclude SC2164,SC1091 * /* .sh
74
+
75
+ .PHONY : autoflake
76
+ autoflake :
77
+ autoflake \
78
+ --in-place \
79
+ --recursive \
80
+ --remove-all-unused-imports \
81
+ --remove-unused-variables \
82
+ --expand-star-imports \
83
+ --exclude _vendor,src/* /_version.py,versioneer.py,release \
84
+ .
85
+
86
+ .PHONY : pydocstyle
87
+ pydocstyle :
88
+ pydocstyle
You can’t perform that action at this time.
0 commit comments