Skip to content

Commit

Permalink
Ignore pylint false positives about missing methods in Gio and GLib
Browse files Browse the repository at this point in the history
Latest pylint/astroid has problems with parsing/introspecting
GI modules, see pylint-dev/pylint#6352
  • Loading branch information
vojtechtrefny committed Jul 14, 2022
1 parent 20e4164 commit a193932
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/pylint/runpylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def __init__(self):
FalsePositive(r"Parameters differ from overridden 'do_task' method$"),
FalsePositive(r"Bad option value '(subprocess-popen-preexec-fn|try-except-raise|environment-modify|arguments-renamed|redundant-u-string-prefix)'"),
FalsePositive(r"Instance of '(Action.*Device|Action.*Format|Action.*Member|Device|DeviceAction|DeviceFormat|Event|ObjectID|PartitionDevice|StorageDevice|BTRFS.*Device|LoopDevice)' has no 'id' member$"),
FalsePositive(r"Instance of 'GError' has no 'message' member") # overriding currently broken local pylint disable
FalsePositive(r"Instance of 'GError' has no 'message' member"), # overriding currently broken local pylint disable
FalsePositive(r"Module '(gi.repository.Gio|gi.repository.GLib)' has no .* member") # pylint/astroid has issues with GI modules https://github.com/PyCQA/pylint/issues/6352
]

def _files(self):
Expand Down

0 comments on commit a193932

Please sign in to comment.