File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ check: doctest
2525 pytest -vv tests/test_* .py
2626
2727lint :
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
3129
3230coverage :
3331 @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"]
8989log_cli_level = " info"
9090testpaths = [" tests" ]
9191
92+ [tool .pylint .main ]
93+ ignore-paths = " src/libsemigroups_pybind11/_version.py"
94+ jobs = 0
95+
9296[tool .pylint .miscellaneous ]
9397# List of note tags to take in consideration, separated by a comma.
9498# notes = ["TODO", "FIXME", "REVIEW"]
You can’t perform that action at this time.
0 commit comments