extend black formatting to tests as well

This commit is contained in:
Anthony Sottile 2021-04-18 09:17:48 -07:00
parent a7174759e9
commit af1668bf04
45 changed files with 1644 additions and 1307 deletions

View file

@ -1,29 +1,29 @@
import setuptools
setuptools.setup(
name='flake8-example-plugin',
license='MIT',
version='1.0.0',
description='Example plugin to Flake8',
author='Ian Cordasco',
author_email='graffatcolmingov@gmail.com',
url='https://github.com/pycqa/flake8',
package_dir={'': 'src/'},
packages=['flake8_example_plugin'],
name="flake8-example-plugin",
license="MIT",
version="1.0.0",
description="Example plugin to Flake8",
author="Ian Cordasco",
author_email="graffatcolmingov@gmail.com",
url="https://github.com/pycqa/flake8",
package_dir={"": "src/"},
packages=["flake8_example_plugin"],
entry_points={
'flake8.extension': [
'X1 = flake8_example_plugin:ExampleOne',
'X2 = flake8_example_plugin:ExampleTwo',
"flake8.extension": [
"X1 = flake8_example_plugin:ExampleOne",
"X2 = flake8_example_plugin:ExampleTwo",
],
},
classifiers=[
'Framework :: Flake8',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
"Framework :: Flake8",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
],
)

View file

@ -3,6 +3,6 @@ from .off_by_default import ExampleTwo
from .on_by_default import ExampleOne
__all__ = (
'ExampleOne',
'ExampleTwo',
"ExampleOne",
"ExampleTwo",
)

View file

@ -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",
)

View file

@ -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