@@ -18,32 +18,34 @@ type: pytype mypy
18
18
19
19
lint :
20
20
# stop the build if there are Python syntax errors or undefined names
21
- # see https://lintlyci.github.io/Flake8Rules/
22
- flake8 ${LINT_PATHS} --count --select=E9,F63,F7,F82 --show-source --statistics
23
- # exit-zero treats all errors as warnings.
24
- flake8 ${LINT_PATHS} --count --exit-zero --statistics
25
-
26
- ruff :
27
- # stop the build if there are Python syntax errors or undefined names
28
- # see https://lintlyci.github.io/Flake8Rules/
21
+ # see https://www.flake8rules.com/
29
22
ruff ${LINT_PATHS} --select=E9,F63,F7,F82 --show-source
30
23
# exit-zero treats all errors as warnings.
31
- ruff ${LINT_PATHS} --exit-zero --line-length 127
24
+ ruff ${LINT_PATHS} --exit-zero
32
25
33
26
format :
34
27
# Sort imports
35
28
isort ${LINT_PATHS}
36
29
# Reformat using black
37
- black -l 127 ${LINT_PATHS}
30
+ black ${LINT_PATHS}
38
31
39
32
check-codestyle :
40
33
# Sort imports
41
34
isort --check ${LINT_PATHS}
42
35
# Reformat using black
43
- black --check -l 127 ${LINT_PATHS}
36
+ black --check ${LINT_PATHS}
44
37
45
38
commit-checks : format type lint
46
39
40
+ doc :
41
+ cd docs && make html
42
+
43
+ spelling :
44
+ cd docs && make spelling
45
+
46
+ clean :
47
+ cd docs && make clean
48
+
47
49
docker : docker-cpu docker-gpu
48
50
49
51
docker-cpu :
@@ -66,4 +68,4 @@ test-release:
66
68
python setup.py bdist_wheel
67
69
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
68
70
69
- .PHONY : lint format check-codestyle commit-checks doc spelling docker type pytest
71
+ .PHONY : lint format check-codestyle commit-checks doc spelling docker type pytest
0 commit comments