extend black formatting to tests as well

This commit is contained in:
Anthony Sottile 2021-04-18 09:17:48 -07:00
parent a7174759e9
commit af1668bf04
45 changed files with 1644 additions and 1307 deletions

View file

@ -3,6 +3,6 @@ from .off_by_default import ExampleTwo
from .on_by_default import ExampleOne
__all__ = (
'ExampleOne',
'ExampleTwo',
"ExampleOne",
"ExampleTwo",
)

View file

@ -3,8 +3,9 @@
class ExampleTwo:
"""Second Example Plugin."""
name = 'off-by-default-example-plugin'
version = '1.0.0'
name = "off-by-default-example-plugin"
version = "1.0.0"
off_by_default = True
@ -13,5 +14,9 @@ class ExampleTwo:
def run(self):
"""Do nothing."""
yield (1, 0, 'X200 The off-by-default plugin was enabled',
'OffByDefaultPlugin')
yield (
1,
0,
"X200 The off-by-default plugin was enabled",
"OffByDefaultPlugin",
)

View file

@ -3,8 +3,9 @@
class ExampleOne:
"""First Example Plugin."""
name = 'on-by-default-example-plugin'
version = '1.0.0'
name = "on-by-default-example-plugin"
version = "1.0.0"
def __init__(self, tree):
self.tree = tree