Skip to content

Commit 9573351

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

File tree

99 files changed

+496
-839
lines changed

Some content is hidden

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

99 files changed

+496
-839
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)