Skip to content

Commit 75bad91

Browse files
committed
ci: exclude README.md from ruff and pre-commit linting checks
The reverted v1 README contains code blocks that don't pass ruff validation. Extend the existing README.v2.md exclusions to also cover README.md.
1 parent 78149b5 commit 75bad91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ repos:
4242
types: [python]
4343
language: system
4444
pass_filenames: false
45-
exclude: ^README\.v2\.md$
45+
exclude: ^README(\.v2)?\.md$
4646
- id: pyright
4747
name: pyright
4848
entry: uv run --frozen pyright

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ executionEnvironments = [
123123
[tool.ruff]
124124
line-length = 120
125125
target-version = "py310"
126-
extend-exclude = ["README.v2.md"]
126+
extend-exclude = ["README.md", "README.v2.md"]
127127

128128
[tool.ruff.lint]
129129
select = [

0 commit comments

Comments
 (0)