mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-02 03:46:53 +00:00
extend black formatting to tests as well
This commit is contained in:
parent
a7174759e9
commit
af1668bf04
45 changed files with 1644 additions and 1307 deletions
|
|
@ -3,6 +3,6 @@ from .off_by_default import ExampleTwo
|
|||
from .on_by_default import ExampleOne
|
||||
|
||||
__all__ = (
|
||||
'ExampleOne',
|
||||
'ExampleTwo',
|
||||
"ExampleOne",
|
||||
"ExampleTwo",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue