anki/qt/tests/run_pylint.py

26 lines
513 B
Python
Raw Normal View History

2021-04-13 10:45:05 +02:00
# Copyright: Ankitects Pty Ltd and contributors
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
2021-01-07 07:20:02 +01:00
import multiprocessing
import os
import subprocess
import sys
2021-01-07 07:20:02 +01:00
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",
str(min(4, multiprocessing.cpu_count())),
"-v",
]
)