Skip to content

Commit 52ad34c

Browse files
committed
Lint Python code with ruff
1 parent f81d6bc commit 52ad34c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,16 @@ jobs:
4040
- name: Install tools
4141
run: |
4242
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
43-
brew install buildifier typos-cli
43+
brew install buildifier ruff typos-cli
4444
4545
- name: Check typos
4646
run: |
4747
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
4848
./scripts/check_typos.sh
4949
50+
- name: Lint Python code
51+
run: |
52+
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
53+
ruff check
54+
5055
# TODO(eustas): run buildifier

research/brotlidump.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- The block type code is useless if NBLTYPES==2, you would only need 1 symbol
99
anyway, so why don't you just switch to "the other" type?
1010
"""
11+
# ruff: noqa
1112
import struct
1213
from operator import itemgetter, methodcaller
1314
from itertools import accumulate, repeat

0 commit comments

Comments
 (0)