Skip to content

Commit 5562e2b

Browse files
committed
Restore formatting in .ruff.toml
1 parent 873d743 commit 5562e2b

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.ruff.toml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,23 @@ exclude = [
1515
"doc/usage/extensions/example*.py",
1616
]
1717
ignore = [
18+
# flake8-annotations
1819
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `{name}`
20+
# pycodestyle
1921
"E741", # Ambiguous variable name: `{name}`
22+
# pyflakes
2023
"F841", # Local variable `{name}` is assigned to but never used
24+
# refurb
2125
"FURB101", # `open` and `read` should be replaced by `Path(...).read_text(...)`
2226
"FURB103", # `open` and `write` should be replaced by `Path(...).write_text(...)`
27+
# pylint
2328
"PLC1901", # simplify truthy/falsey string comparisons
29+
# flake8-simplify
2430
"SIM102", # Use a single `if` statement instead of nested `if` statements
2531
"SIM108", # Use ternary operator `{contents}` instead of `if`-`else`-block
32+
# pyupgrade
2633
"UP031", # Use format specifiers instead of percent format
2734
"UP032", # Use f-string instead of `format` call
28-
2935
]
3036
external = [ # Whitelist for RUF100 unknown code warnings
3137
"E704",
@@ -36,7 +42,8 @@ select = [
3642
# NOT YET USED
3743
# airflow ('AIR')
3844
# Airflow is not used in Sphinx
39-
"ANN", # flake8-annotations ('ANN')
45+
# flake8-annotations ('ANN')
46+
"ANN",
4047
# flake8-unused-arguments ('ARG')
4148
"ARG004", # Unused static method argument: `{name}`
4249
# flake8-async ('ASYNC')
@@ -124,7 +131,8 @@ select = [
124131
# NOT YET USED
125132
# flynt ('FLY')
126133
# NOT YET USED
127-
"FURB", # refurb
134+
# refurb ('FURB')
135+
"FURB",
128136
# flake8-logging-format ('G')
129137
"G001", # Logging statement uses `str.format`
130138
# "G002", # Logging statement uses `%`
@@ -136,6 +144,7 @@ select = [
136144
"G202", # Logging statement has redundant `exc_info`
137145
# isort ('I')
138146
"I",
147+
# flake8-import-conventions ('ICN')
139148
"ICN", # flake8-import-conventions
140149
# flake8-no-pep420 ('INP')
141150
"INP",
@@ -327,16 +336,19 @@ select = [
327336
"S612", # Use of insecure `logging.config.listen` detected
328337
# "S701", # Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function.
329338
# "S702", # Mako templates allow HTML and JavaScript rendering by default and are inherently open to XSS attacks
339+
# flake8-simplify ('SIM')
330340
"SIM", # flake8-simplify
331341
# flake8-self ('SLF')
332342
# NOT YET USED
333-
"SLOT", # flake8-slots
343+
# flake8-slots ('SLOT')
344+
"SLOT",
334345
# flake8-debugger ('T10')
335346
"T100", # Trace found: `{name}` used
336347
# flake8-print ('T20')
337348
"T201", # `print` found
338349
"T203", # `pprint` found
339-
"TCH", # flake8-type-checking
350+
# flake8-type-checking ('TCH')
351+
"TCH",
340352
# flake8-todos ('TD')
341353
# "TD001", # Invalid TODO tag: `{tag}`
342354
# "TD003", # Missing issue link on the line following this TODO
@@ -352,7 +364,8 @@ select = [
352364
# Trio is not used in Sphinx
353365
# tryceratops ('TRY')
354366
# NOT YET USED
355-
"UP001", # pyupgrade
367+
# pyupgrade ('UP')
368+
"UP",
356369
# pycodestyle ('W')
357370
"W191", # Indentation contains tabs
358371
# "W291", # Trailing whitespace

0 commit comments

Comments
 (0)