diff options
Diffstat (limited to 'example-plugin')
4 files changed, 6 insertions, 11 deletions
diff --git a/example-plugin/setup.py b/example-plugin/setup.py index 2da68f6..0facd57 100644 --- a/example-plugin/setup.py +++ b/example-plugin/setup.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import setuptools setuptools.setup( @@ -21,11 +20,9 @@ setuptools.setup( 'Framework :: Flake8', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Quality Assurance', ], 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 [] |
