Skip to content

Commit cb01244

Browse files
committed
GHA: add ruff [ci skip]
Using curl's ruff configuration. curl-for-win has just a tiny amount of Python, but let's verify it anyway. Credits-to: Dan Fandrich curl/curl@57cc523
1 parent 88bf26b commit cb01244

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ jobs:
8282
--ignore-words '.github/workflows/codespell-ignore.words' \
8383
$(git ls-files)
8484
85+
- name: 'ruff'
86+
run: |
87+
source ~/venv/bin/activate
88+
ruff --version
89+
# shellcheck disable=SC2046
90+
ruff check --extend-select=B007,B016,C405,C416,COM818,D200,D213,D204,D401,D415,FURB129,N818,PERF401,PERF403,PIE790,PIE808,PLW0127,Q004,RUF010,SIM101,SIM117,SIM118,TRY400,TRY401 \
91+
$(git ls-files '*.py')
92+
8593
linux-glibc-debian-testing-llvm:
8694
name: 'linux-glibc-debian-testing-llvm'
8795
runs-on: 'ubuntu-latest'

.github/workflows/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33

44
codespell==2.4.1
55
reuse==6.1.2
6+
ruff==0.14.1

0 commit comments

Comments
 (0)