Adding new stuff
This commit is contained in:
parent
e2fdf4c3b9
commit
3d621f7993
451 changed files with 6 additions and 1 deletions
|
|
@ -0,0 +1,39 @@
|
|||
"""Load extensions."""
|
||||
|
||||
LINTERS = {}
|
||||
|
||||
try:
|
||||
from pylama.lint.pylama_mccabe import Linter
|
||||
LINTERS['mccabe'] = Linter()
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
try:
|
||||
from pylama.lint.pylama_pep257 import Linter
|
||||
LINTERS['pep257'] = Linter()
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
try:
|
||||
from pylama.lint.pylama_pep8 import Linter
|
||||
LINTERS['pep8'] = Linter()
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
try:
|
||||
from pylama.lint.pylama_pyflakes import Linter
|
||||
LINTERS['pyflakes'] = Linter()
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
from pkg_resources import iter_entry_points
|
||||
|
||||
for entry in iter_entry_points('pylama.linter'):
|
||||
if entry.name not in LINTERS:
|
||||
try:
|
||||
LINTERS[entry.name] = entry.load()()
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
# pylama:ignore=E0611
|
||||
Loading…
Add table
Add a link
Reference in a new issue