Anki/qt/tests/run_pylint.py
Damien Elmes 4b11854a2e fix pylint in qt
pylint fails to read Qt modules when invoked as a subprocess with
-j 0, and it looks like I committed this in the middle of debugging
the issue. Work around it by invoking pylint directly. It's still
awfully slow, taking 30 seconds on a 10 core machine.
2021-01-07 15:47:25 +10:00

21 lines
325 B
Python

import os
import subprocess
import sys
import PyQt5
from pylint.lint import Run
if __name__ == "__main__":
(module, ini) = sys.argv[1:]
ini = os.path.abspath(ini)
Run(
[
"qt/aqt",
"--rcfile",
ini,
"-j",
"0",
"-v",
]
)