Skip to content

Commit 57b4ae8

Browse files
committed
Revert "Doc only PR"
This reverts commit 7eb364d.
1 parent ef7f12a commit 57b4ae8

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Doc/.ruff.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
target-version = "py312" # Align with the version in oldest_supported_sphinx
2+
fix = true
3+
output-format = "full"
4+
line-length = 79
5+
extend-exclude = [
6+
"includes/*",
7+
# Temporary exclusions:
8+
"tools/extensions/pyspecific.py",
9+
]
10+
11+
[lint]
12+
preview = true
13+
select = [
14+
"C4", # flake8-comprehensions
15+
"B", # flake8-bugbear
16+
"E", # pycodestyle
17+
"F", # pyflakes
18+
"FA", # flake8-future-annotations
19+
"FLY", # flynt
20+
"FURB", # refurb
21+
"G", # flake8-logging-format
22+
"I", # isort
23+
"LOG", # flake8-logging
24+
"N", # pep8-naming
25+
"PERF", # perflint
26+
"PGH", # pygrep-hooks
27+
"PT", # flake8-pytest-style
28+
"TCH", # flake8-type-checking
29+
"UP", # pyupgrade
30+
"W", # pycodestyle
31+
]
32+
ignore = [
33+
"E501", # Ignore line length errors (we use auto-formatting)
34+
]
35+
36+
[format]
37+
preview = true
38+
quote-style = "preserve"
39+
docstring-code-format = true
40+
exclude = [
41+
"tools/extensions/lexers/*",
42+
]

0 commit comments

Comments
 (0)