pylint: Make sure we lint against Gtk3

We need to pass virtmanager.py to pylint first, so it detects
the require_version() call

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2021-04-06 18:28:18 -04:00
parent 511857b288
commit 5b93a43622

View File

@ -366,7 +366,14 @@ class CheckPylint(distutils.core.Command):
import pylint.lint
import pycodestyle
lintfiles = ["setup.py", "virtinst", "virtManager", "tests"]
lintfiles = [
"setup.py",
"tests",
"virtinst",
# Put this first so pylint learns what Gtk version we
# want to lint against
"virtManager/virtmanager.py",
"virtManager"]
spellfiles = lintfiles[:]
spellfiles += list(glob.glob("*.md"))