2021-02-07 13:55:38 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2016-06-01 15:11:29 +00:00
|
|
|
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
|
|
|
|
|
2020-02-11 12:08:01 +00:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2013-09-22 09:06:37 +00:00
|
|
|
import pylint
|
2018-09-16 15:33:50 +00:00
|
|
|
|
2020-02-11 12:08:01 +00:00
|
|
|
# Strip out the current working directory from sys.path.
|
|
|
|
# Having the working directory in `sys.path` means that `pylint` might
|
|
|
|
# inadvertently import user code from modules having the same name as
|
|
|
|
# stdlib or pylint's own modules.
|
|
|
|
# CPython issue: https://bugs.python.org/issue33053
|
|
|
|
if sys.path[0] == "" or sys.path[0] == os.getcwd():
|
|
|
|
sys.path.pop(0)
|
|
|
|
|
2013-09-22 09:06:37 +00:00
|
|
|
pylint.run_pylint()
|