diff options
| author | Anthony Sottile <asottile@umich.edu> | 2021-04-18 09:17:48 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2021-04-18 09:23:48 -0700 |
| commit | af1668bf04079b1a8db5910a5e3697c7c8db8fc9 (patch) | |
| tree | 65405b4d3c2c5e1a90fa5eb3d7c8d6b7d4c18c68 /example-plugin/src | |
| parent | a7174759e9a651405ef37db511ac1168e3bbdec5 (diff) | |
| download | flake8-af1668bf04079b1a8db5910a5e3697c7c8db8fc9.tar.gz | |
extend black formatting to tests as well
Diffstat (limited to 'example-plugin/src')
3 files changed, 14 insertions, 8 deletions
diff --git a/example-plugin/src/flake8_example_plugin/__init__.py b/example-plugin/src/flake8_example_plugin/__init__.py index 420ce73..3f6f163 100644 --- a/example-plugin/src/flake8_example_plugin/__init__.py +++ b/example-plugin/src/flake8_example_plugin/__init__.py @@ -3,6 +3,6 @@ from .off_by_default import ExampleTwo from .on_by_default import ExampleOne __all__ = ( - 'ExampleOne', - 'ExampleTwo', + "ExampleOne", + "ExampleTwo", ) diff --git a/example-plugin/src/flake8_example_plugin/off_by_default.py b/example-plugin/src/flake8_example_plugin/off_by_default.py index 50afa81..93dfb38 100644 --- a/example-plugin/src/flake8_example_plugin/off_by_default.py +++ b/example-plugin/src/flake8_example_plugin/off_by_default.py @@ -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", + ) diff --git a/example-plugin/src/flake8_example_plugin/on_by_default.py b/example-plugin/src/flake8_example_plugin/on_by_default.py index c748822..d712718 100644 --- a/example-plugin/src/flake8_example_plugin/on_by_default.py +++ b/example-plugin/src/flake8_example_plugin/on_by_default.py @@ -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 |
