Skip to content

Commit 7baf7d3

Browse files
Better linting in workflows
1 parent f3f0a6e commit 7baf7d3

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,8 @@ jobs:
6262
etc/make-doc.sh # so that all files are generated!
6363
cd docs
6464
python -m sphinx -b doctest -d _build/doctrees source _build/doctest
65-
- name: "Pip3 installing pylint + cpplint . . ."
66-
run: |
67-
pip3 install pylint cpplint
68-
- name: "Running pylint and cpplint . . ."
69-
run: |
70-
python -m pylint setup.py tests/*.py src/libsemigroups_pybind11/*.py
71-
python -m cpplint src/*.hpp src/*.cpp
65+
- name: "Running ruff, pylint and cpplint . . ."
66+
run: make lint
7267
macosx:
7368
strategy:
7469
fail-fast: false
@@ -127,10 +122,5 @@ jobs:
127122
etc/make-doc.sh # so that all files are generated!
128123
cd docs
129124
python -m sphinx -b doctest -d _build/doctrees source _build/doctest
130-
- name: "Pip3 installing pylint + cpplint . . ."
131-
run: |
132-
pip3 install pylint cpplint
133-
- name: "Running pylint and cpplint . . ."
134-
run: |
135-
python -m pylint setup.py tests/*.py src/libsemigroups_pybind11/*.py
136-
python -m cpplint src/*.hpp src/*.cpp
125+
- name: "Running ruff, pylint and cpplint . . ."
126+
run: make lint

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ accepts==2020.12.3
22
argcomplete==3.6.2
33
beautifulsoup4==4.13.3
44
colorama==0.4.6
5+
cpplint==2.0.0
56
eventlet==0.39.1
67
exceptiongroup==1.2.2
78
gevent==24.11.1
@@ -15,9 +16,11 @@ pkgconfig==1.5.5
1516
pudb==2024.1.3
1617
pybind11==2.13.6
1718
pygments==2.19.1
19+
pylint==3.3.5
1820
pytest==8.3.3
1921
pyyaml==6.0.2
2022
pyyaml==6.0.2
23+
ruff==0.11.2
2124
setuptools==75.8.2
2225
sphinx_rtd_theme==3.0.2
2326
sphinx-copybutton==0.5.2

0 commit comments

Comments
 (0)