Skip to content

Commit 654ce28

Browse files
Use ruff and pylint on same files
1 parent 766e28c commit 654ce28

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

etc/make-lint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ if [[ $# -ne 0 ]]; then
66
fi
77

88
exit_code=0
9+
python_files="setup.py tests/*.py src/libsemigroups_pybind11/*.py src/libsemigroups_pybind11/**/*.py docs/source/*.py docs/source/**/*.py"
910

1011
echo "Linting with ruff . . ."
11-
ruff check setup.py tests/*.py src/libsemigroups_pybind11/*.py docs/source/*.py || ((exit_code = 1))
12+
ruff check $python_files || ((exit_code = 1))
1213

1314
echo "Linting with pylint . . ."
14-
pylint setup.py tests/*.py src/libsemigroups_pybind11/*.py src/libsemigroups_pybind11/**/*.py || ((exit_code = 1))
15+
pylint $python_files || ((exit_code = 1))
1516

1617
echo "Linting with cpplint . . ."
1718
cpplint src/*.hpp src/*.cpp || ((exit_code = 1))

0 commit comments

Comments
 (0)