diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 70b78b9cc3ae585cd4d5e7da61655193acf8d028..921337583f9898aa102b7f9f6cda70d06e1cb52b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,14 +26,14 @@ Python 2.7 Conda: reports: junit: test/pytest.xml -Python 3.6: +Python 3.7: script: - - py_version=3.6 + - py_version=3.7 - EXTRA_INSTALL="numpy sympy pexpect" - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh - ". ./build-and-test-py-project.sh" tags: - - python3.6 + - python3.7 - maxima except: - tags @@ -41,7 +41,7 @@ Python 3.6: reports: junit: test/pytest.xml -Python 3.5 Conda: +Python 3.6 Conda: script: - CONDA_ENVIRONMENT=.test-py3.yml - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project-within-miniconda.sh @@ -54,7 +54,7 @@ Python 3.5 Conda: reports: junit: test/pytest.xml -Python 3.5 Apple: +Python 3.6 Apple: script: - CONDA_ENVIRONMENT=.test-py3.yml - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project-within-miniconda.sh @@ -70,11 +70,11 @@ Python 3.5 Apple: Pylint: script: - EXTRA_INSTALL="numpy sympy symengine scipy pexpect" - - py_version=3.6 + - py_version=3.7 - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh - ". ./prepare-and-run-pylint.sh pymbolic test/test_*.py" tags: - - python3.6 + - python3.7 except: - tags diff --git a/.test-py3.yml b/.test-py3.yml index 03bac4972e1226544a33f51f62766204a4582e91..bd1f2bd30934d60b3d9ac358a46815ccf8302960 100644 --- a/.test-py3.yml +++ b/.test-py3.yml @@ -6,7 +6,7 @@ channels: dependencies: - conda-forge::numpy - conda-forge::sympy - - python=3.5 + - python=3.6 - symengine::python-symengine=0.3.0 # - pexpect # - maxima diff --git a/pymbolic/imperative/utils.py b/pymbolic/imperative/utils.py index 39d0d138257610acf0ad18e17af8c38f9807e84c..70a2813852c3e9d59caaa717fa3b41af9a3dfbda 100644 --- a/pymbolic/imperative/utils.py +++ b/pymbolic/imperative/utils.py @@ -124,9 +124,9 @@ def get_dot_dependency_graph( lines.append("%s -> %s" % (stmt_2, stmt_1)) for (stmt_1, stmt_2), annot in six.iteritems(annotation_dep_graph): - lines.append( - "%s -> %s [label=\"%s\",style=\"dashed\"]" - % (stmt_2, stmt_1, annot)) + lines.append( + "%s -> %s [label=\"%s\",style=\"dashed\"]" + % (stmt_2, stmt_1, annot)) lines.extend(additional_lines_hook()) diff --git a/pymbolic/mapper/dependency.py b/pymbolic/mapper/dependency.py index dc10d9e03a1625987de744340208ff4fa5a77355..1a041b17de3ba96e221a43b3b6ce8619b7a2932f 100644 --- a/pymbolic/mapper/dependency.py +++ b/pymbolic/mapper/dependency.py @@ -66,8 +66,8 @@ class DependencyMapper(CSECachingMapperMixin, Collector): def map_call(self, expr): if self.include_calls == "descend_args": - return self.combine( - [self.rec(child) for child in expr.parameters]) + return self.combine( + [self.rec(child) for child in expr.parameters]) elif self.include_calls: return set([expr]) else: @@ -75,10 +75,10 @@ class DependencyMapper(CSECachingMapperMixin, Collector): def map_call_with_kwargs(self, expr): if self.include_calls == "descend_args": - return self.combine( - [self.rec(child) for child in expr.parameters] - + [self.rec(val) for name, val in expr.kw_parameters.items()] - ) + return self.combine( + [self.rec(child) for child in expr.parameters] + + [self.rec(val) for name, val in expr.kw_parameters.items()] + ) elif self.include_calls: return set([expr]) else: