Skip to content

Commit 857e7ff

Browse files
authored
Update ruff checks in tools/maint/pre-push. NFC (#24872)
1 parent d4d2496 commit 857e7ff

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ jobs:
445445
- run: tools/maint/check_emcc_help_text.py
446446
- run: make -C site html
447447
ruff:
448+
# Keep in sync with ruff commands in tools/maint/pre-push
448449
executor: focal
449450
steps:
450451
- checkout

tools/maint/pre-push

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
#
55
# This script can be installed using `./boostrap -i`.
66

7-
exec ruff check -q
7+
set -o errexit
8+
9+
# Keep these check in sync with `ruff` rule in .circleci/config.yml
10+
ruff check -q
11+
ruff check --preview --select=E20,E30,E221,E225,E226

0 commit comments

Comments
 (0)