Skip to content

Commit e277540

Browse files
committed
Switch to ruff like MicroPython
1 parent 7f0cc9e commit e277540

File tree

338 files changed

+1754
-940
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+1754
-940
lines changed

.pre-commit-config.yaml

+15-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v4.0.1
9+
rev: v5.0.0
1010
hooks:
1111
- id: check-yaml
1212
- id: end-of-file-fixer
@@ -39,10 +39,23 @@ repos:
3939
- id: formatting
4040
name: Formatting
4141
entry: python3 tools/codeformat.py
42-
types_or: [c, python]
42+
types: [c]
4343
language: system
4444
exclude: |
4545
(?x)^(
4646
lib/tinyusb|
4747
ports/raspberrypi/sdk
4848
)
49+
- repo: https://github.com/astral-sh/ruff-pre-commit
50+
# Ruff version.
51+
rev: v0.9.4
52+
hooks:
53+
# Run the linter.
54+
- id: ruff
55+
args: [ --fix ]
56+
# Run the formatter.
57+
- id: ruff-format
58+
- repo: https://github.com/tox-dev/pyproject-fmt
59+
rev: "v2.5.0"
60+
hooks:
61+
- id: pyproject-fmt

0 commit comments

Comments
 (0)