From 179f45ca9c0e87afceb6aaee30258e7a70f74d40 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Tue, 30 May 2017 10:27:22 +0100 Subject: [PATCH] Add some more ignores for pylint It doesn't work very well with apt_pkg. --- 404main | 4 ++++ ubuntutools/test/pylint.conf | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/404main b/404main index 2eded97..abfaf62 100755 --- a/404main +++ b/404main @@ -103,9 +103,13 @@ def find_main(cache, pack): for or_deps in all_deps: base_deps = [] for (name, ver, op) in or_deps: + # pylint: disable=too-many-function-args base_deps.append(apt.package.BaseDependency(name, op, ver, False)) + # pylint: enable=too-many-function-args + # pylint: disable=no-value-for-parameter deps.append(apt.package.Dependency(base_deps)) + # pylint: enable=no-value-for-parameter process_deps(cache, deps) diff --git a/ubuntutools/test/pylint.conf b/ubuntutools/test/pylint.conf index 1c8227c..409eb48 100644 --- a/ubuntutools/test/pylint.conf +++ b/ubuntutools/test/pylint.conf @@ -3,7 +3,7 @@ # List of classes names for which member attributes should not be checked # (useful for classes with attributes dynamically set). # lpapicache classes, urlparse -ignored-classes=Launchpad,BaseWrapper,PersonTeam,Distribution,Consumer,Credentials,ParseResult +ignored-classes=Launchpad,BaseWrapper,PersonTeam,Distribution,Consumer,Credentials,ParseResult,apt_pkg,apt_pkg.Dependency,apt_pkg.BaseDependency [FORMAT]