mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
Add an example plugin project to source tree
This commit is contained in:
parent
a9e15afbf5
commit
5f3577fca8
4 changed files with 73 additions and 0 deletions
17
example-plugin/src/flake8_example_plugin/off_by_default.py
Normal file
17
example-plugin/src/flake8_example_plugin/off_by_default.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"""Our first example plugin."""
|
||||
|
||||
|
||||
class ExampleTwo(object):
|
||||
"""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')
|
||||
Loading…
Add table
Add a link
Reference in a new issue