diff options
| author | Anthony Sottile <asottile@umich.edu> | 2021-03-29 17:43:42 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2021-03-30 17:37:13 -0700 |
| commit | 358ae85120b5336f6abf574688b1f7290b3c8cc4 (patch) | |
| tree | b19e95f7eac533e223fd20950c99f67f92f9df10 /example-plugin | |
| parent | 8cc3fc01e8d06b2eb6fa59332b598b2c638a4d40 (diff) | |
| download | flake8-358ae85120b5336f6abf574688b1f7290b3c8cc4.tar.gz | |
automatic: pyupgrade --py36-plus
Diffstat (limited to 'example-plugin')
4 files changed, 4 insertions, 7 deletions
diff --git a/example-plugin/setup.py b/example-plugin/setup.py index 80911a2..0facd57 100644 --- a/example-plugin/setup.py +++ b/example-plugin/setup.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import setuptools setuptools.setup( diff --git a/example-plugin/src/flake8_example_plugin/__init__.py b/example-plugin/src/flake8_example_plugin/__init__.py index 33d76f3..420ce73 100644 --- a/example-plugin/src/flake8_example_plugin/__init__.py +++ b/example-plugin/src/flake8_example_plugin/__init__.py @@ -1,7 +1,6 @@ """Module for an example Flake8 plugin.""" - -from .on_by_default import ExampleOne from .off_by_default import ExampleTwo +from .on_by_default import ExampleOne __all__ = ( 'ExampleOne', 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 d768328..50afa81 100644 --- a/example-plugin/src/flake8_example_plugin/off_by_default.py +++ b/example-plugin/src/flake8_example_plugin/off_by_default.py @@ -1,7 +1,7 @@ """Our first example plugin.""" -class ExampleTwo(object): +class ExampleTwo: """Second Example Plugin.""" name = 'off-by-default-example-plugin' version = '1.0.0' 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 a324297..c748822 100644 --- a/example-plugin/src/flake8_example_plugin/on_by_default.py +++ b/example-plugin/src/flake8_example_plugin/on_by_default.py @@ -1,7 +1,7 @@ """Our first example plugin.""" -class ExampleOne(object): +class ExampleOne: """First Example Plugin.""" name = 'on-by-default-example-plugin' version = '1.0.0' @@ -11,5 +11,4 @@ class ExampleOne(object): def run(self): """Do nothing.""" - for message in []: - yield message + yield from [] |
