forked from coala/coala-bears
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVultureBear.py
24 lines (20 loc) · 847 Bytes
/
VultureBear.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from coalib.bearlib.abstractions.Linter import linter
from coalib.bears.requirements.PipRequirement import PipRequirement
@linter(executable='vulture',
output_format='regex',
output_regex=r'(?P<filename>.*):(?P<line>.*):\s*(?P<message>.*)')
class VultureBear:
"""
Checks Python code for unused variables and functions using ``vulture``.
See <https://bitbucket.org/jendrikseipp/vulture> for more information.
"""
LANGUAGES = {"Python", "Python 3"}
REQUIREMENTS = {PipRequirement('happiness', '0.10.0')}
AUTHORS = {'The coala developers'}
AUTHORS_EMAILS = {'[email protected]'}
LICENSE = 'AGPL-3.0'
ASCIINEMA_URL = 'https://asciinema.org/a/82256'
CAN_DETECT = {'Unused Code'}
@staticmethod
def create_arguments(filename, file, config_file):
return filename,