File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ check: doctest
25
25
pytest -vv tests/test_* .py
26
26
27
27
lint :
28
- ruff check --exit-zero setup.py tests/* .py src/libsemigroups_pybind11/* .py docs/source/* .py
29
- pylint --exit-zero setup.py tests/* .py src/libsemigroups_pybind11/* .py src/libsemigroups_pybind11/** /* .py
30
- cpplint src/* .hpp src/* .cpp
28
+ etc/make-lint.sh
31
29
32
30
coverage :
33
31
@coverage run --source . --omit=" tests/*" -m pytest tests/test_* .py
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [[ $# -ne 0 ]]; then
4
+ bold " error expected 0 arguments, got $# !"
5
+ exit 1
6
+ fi
7
+
8
+ exit_code=0
9
+
10
+ echo " Linting with ruff . . ."
11
+ ruff check setup.py tests/* .py src/libsemigroups_pybind11/* .py docs/source/* .py || (( exit_code = 1 ))
12
+
13
+ echo " Linting with pylint . . ."
14
+ pylint setup.py tests/* .py src/libsemigroups_pybind11/* .py src/libsemigroups_pybind11/** /* .py || (( exit_code = 1 ))
15
+
16
+ echo " Linting with cpplint . . ."
17
+ cpplint src/* .hpp src/* .cpp || (( exit_code = 1 ))
18
+
19
+ exit $exit_code
Original file line number Diff line number Diff line change @@ -89,6 +89,10 @@ filterwarnings = ["error"]
89
89
log_cli_level = " info"
90
90
testpaths = [" tests" ]
91
91
92
+ [tool .pylint .main ]
93
+ ignore-paths = " src/libsemigroups_pybind11/_version.py"
94
+ jobs = 0
95
+
92
96
[tool .pylint .miscellaneous ]
93
97
# List of note tags to take in consideration, separated by a comma.
94
98
# notes = ["TODO", "FIXME", "REVIEW"]
You can’t perform that action at this time.
0 commit comments