mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Run Ruff on `tests/js/roots/
`
This commit is contained in:
parent
c123c7b914
commit
013dcdc3b8
@ -4,7 +4,6 @@ output-format = "full"
|
||||
|
||||
extend-exclude = [
|
||||
"tests/roots/*",
|
||||
"tests/js/roots/*",
|
||||
"build/*",
|
||||
"doc/_build/*",
|
||||
"doc/usage/extensions/example*.py",
|
||||
@ -334,6 +333,9 @@ select = [
|
||||
"T201", # whitelist ``print`` for tests
|
||||
]
|
||||
|
||||
# test roots are not packages
|
||||
"tests/js/roots/*" = ["I002", "INP001"]
|
||||
|
||||
# these tests need old ``typing`` generic aliases
|
||||
"tests/test_util/test_util_typing.py" = ["RUF036", "UP006", "UP007", "UP035"]
|
||||
"tests/test_util/typing_test_data.py" = ["FA100", "I002", "PYI030", "UP006", "UP007", "UP035"]
|
||||
|
@ -1,7 +1,8 @@
|
||||
class Example:
|
||||
"""Example class"""
|
||||
num_attribute = 5
|
||||
text_attribute = "string"
|
||||
|
||||
relevance = "testing"
|
||||
num_attribute = 5
|
||||
text_attribute = 'string'
|
||||
|
||||
relevance = 'testing'
|
||||
"""attribute docstring"""
|
||||
|
Loading…
Reference in New Issue
Block a user