summaryrefslogtreecommitdiff
path: root/example-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'example-plugin')
-rw-r--r--example-plugin/setup.py1
-rw-r--r--example-plugin/src/flake8_example_plugin/__init__.py3
-rw-r--r--example-plugin/src/flake8_example_plugin/off_by_default.py2
-rw-r--r--example-plugin/src/flake8_example_plugin/on_by_default.py5
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 []