aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVirgil Dupras <hsoft@hardcoded.net>2018-08-14 11:14:09 -0400
committerVirgil Dupras <hsoft@hardcoded.net>2018-08-14 11:14:09 -0400
commit23368d93037c7134847e99ff9772e2e2fbc9daa3 (patch)
tree74e5ecb11b744d2b576b1a5da4fb6895246fe6c3 /pym/gentoolkit/equery/list_.py
parentRemove gentoolkit.deprecated (diff)
downloadgentoolkit-23368d93037c7134847e99ff9772e2e2fbc9daa3.tar.gz
gentoolkit-23368d93037c7134847e99ff9772e2e2fbc9daa3.tar.bz2
gentoolkit-23368d93037c7134847e99ff9772e2e2fbc9daa3.zip
Add (and fix) flake8 checks in tox
Add config in tox to run flake8 checks. For now, only "F*" errors are checked (errors reported by pyflakes). pep8 style checks are ignored for now. This is accompanied by changes in the code that are necessary to silence these errors. Most of them were about unused imports, but also unsed referenced and even undefined ones (meaning that this code path was broken, gotta increase test coverage). This setup will replace pylint which reports way too many errors to be usable (see next commit).
Diffstat (limited to 'pym/gentoolkit/equery/list_.py')
-rw-r--r--pym/gentoolkit/equery/list_.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/pym/gentoolkit/equery/list_.py b/pym/gentoolkit/equery/list_.py
index 214f49b..c547ac3 100644
--- a/pym/gentoolkit/equery/list_.py
+++ b/pym/gentoolkit/equery/list_.py
@@ -17,11 +17,9 @@ __docformat__ = 'epytext'
import sys
from getopt import gnu_getopt, GetoptError
-import gentoolkit
import gentoolkit.pprinter as pp
from gentoolkit import errors
from gentoolkit.equery import format_options, mod_usage, CONFIG
-from gentoolkit.helpers import get_installed_cpvs
from gentoolkit.helpers import get_bintree_cpvs
from gentoolkit.package import PackageFormatter, FORMAT_TMPL_VARS
from gentoolkit.query import Query