We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02f33b9 commit e274046Copy full SHA for e274046
1 file changed
setup.py
@@ -138,7 +138,10 @@ def _run(self):
138
files = ["bugzilla/", "bin-bugzilla", "examples/*.py", "tests/*.py"]
139
output_format = sys.stdout.isatty() and "colorized" or "text"
140
141
- cmd = "pylint "
+ if os.path.exists("/usr/bin/pylint-2"):
142
+ cmd = "pylint-2 "
143
+ else:
144
+ cmd = "pylint "
145
cmd += "--output-format=%s " % output_format
146
cmd += " ".join(files)
147
os.system(cmd + " --rcfile tests/pylint.cfg")
0 commit comments