From 5b93a43622d4d47aa8920233a18dda501fae7c54 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 6 Apr 2021 18:28:18 -0400 Subject: 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 --- setup.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 6574d95a..bfc4f91c 100755 --- a/setup.py +++ b/setup.py @@ -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")) -- cgit v1.2.1