aboutsummaryrefslogtreecommitdiff
path: root/pylint
blob: a8deef0c6c7111f03a139adb210ef1809dcb41b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python

"""Wrapper that adds our custom pylintrc and plugin."""

import sys
from os.path import dirname, join as pjoin

path = pjoin(dirname(__file__), 'lintplugin')
sys.path.insert(0, path)

from pylint import lint

try:
    lint.Run(['--rcfile', pjoin(path, 'pylintrc')] + sys.argv[1:])
except KeyboardInterrupt:
    sys.exit(1)