Run Ruff on `tests/js/roots/`

This commit is contained in:
Adam Turner 2025-01-02 23:53:11 +00:00
parent c123c7b914
commit 013dcdc3b8
2 changed files with 7 additions and 4 deletions

View File

@ -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"]

View File

@ -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"""