diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-08-10 11:19:58 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-08-15 10:43:55 +0200 |
commit | 14dcc4a4f961bd6dd1d84ec858e0378cf43afa8b (patch) | |
tree | 356698c18599c17062e1f102b04f52558a94efc0 /giscanner/maintransformer.py | |
parent | f2be65b417b7179f5490c0735d053bd466f7f317 (diff) | |
download | gobject-introspection-14dcc4a4f961bd6dd1d84ec858e0378cf43afa8b.tar.gz |
tests: depend on flake8 instead of including pep8/pyflakes
g-i includes an old version of pep8 and pyflakes and uses that
during "make check".
It (1) doesn't catch all cases newer versions of pycodestyle/pyflakes catch
and (2) doesn't test all Python files (3) doesn't work with meson.
Instead of updating just remove them and depend on flake8 instead.
To run the checks simply run flake8 in the root dir.
This also makes it possible to run those checks when using meson and
not autotools.
To not get test suite failures on flake8 updates move the checks from
"make check" to an extra "make check.quality" target.
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r-- | giscanner/maintransformer.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index a7287ec2..2103e541 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -35,8 +35,7 @@ from .annotationparser import (ANN_ALLOW_NONE, ANN_ARRAY, ANN_ATTRIBUTES, ANN_CL ANN_VFUNC, ANN_NULLABLE, ANN_OPTIONAL, ANN_NOT) from .annotationparser import (OPT_ARRAY_FIXED_SIZE, OPT_ARRAY_LENGTH, OPT_ARRAY_ZERO_TERMINATED, OPT_OUT_CALLEE_ALLOCATES, OPT_OUT_CALLER_ALLOCATES, - OPT_TRANSFER_CONTAINER, OPT_TRANSFER_FLOATING, OPT_TRANSFER_NONE, - OPT_NOT_NULLABLE) + OPT_TRANSFER_CONTAINER, OPT_TRANSFER_FLOATING, OPT_TRANSFER_NONE) from .utils import to_underscores_noprefix @@ -515,7 +514,7 @@ class MainTransformer(object): initially_unowned_type = ast.Type(target_giname='GObject.InitiallyUnowned') try: initially_unowned = self._transformer.lookup_typenode(initially_unowned_type) - except KeyError as e: + except KeyError: message.error_node(node, "constructor found but GObject is not in includes") return None if initially_unowned and self._is_gi_subclass(typeval, initially_unowned_type): |