Skip to content

Commit 6d95feb

Browse files
committed
CI: Run ruff checks
1 parent d928416 commit 6d95feb

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,17 @@ jobs:
4646
run: pip install black~=25.1
4747
- name: Check code formatting
4848
run: black --check .
49+
50+
lint:
51+
runs-on: ubuntu-24.04
52+
name: Run linting with ruff
53+
steps:
54+
- uses: actions/checkout@v3
55+
- name: Setup python
56+
uses: actions/setup-python@v4
57+
with:
58+
python-version: 3.12
59+
- name: Install ruff
60+
run: pip install ruff~=0.11.2
61+
- name: Run linter
62+
run: ruff check

README.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,7 @@ Then run the tests:
124124
Coding Guidelines
125125
=================
126126

127-
`PEP8 <http://www.python.org/dev/peps/pep-0008/>`__ via `flake8
128-
<https://pypi.python.org/pypi/flake8>`_ with ``max-line-width`` set to 99 and
129-
``E126-E128,C901`` ignored::
130-
131-
flake8 --max-line-length=99 --ignore=E126,E127,E128,C901 RPLCD/lcd.py
132-
133-
Additionally, please reformat your code using `black <https://black.readthedocs.io/>`_::
127+
Please reformat your code using `black <https://black.readthedocs.io/>`_::
134128

135129
black .
136130

0 commit comments

Comments
 (0)