mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 02:46:52 +00:00
22 lines
428 B
Python
22 lines
428 B
Python
"""Our first example plugin."""
|
|
|
|
|
|
class ExampleTwo:
|
|
"""Second Example Plugin."""
|
|
|
|
name = "off-by-default-example-plugin"
|
|
version = "1.0.0"
|
|
|
|
off_by_default = True
|
|
|
|
def __init__(self, tree):
|
|
self.tree = tree
|
|
|
|
def run(self):
|
|
"""Do nothing."""
|
|
yield (
|
|
1,
|
|
0,
|
|
"X200 The off-by-default plugin was enabled",
|
|
"OffByDefaultPlugin",
|
|
)
|