From a46076ba35adfda172fd31c7de5d956301c9b9ef Mon Sep 17 00:00:00 2001 From: Carlo Bertini Date: Wed, 4 Jan 2023 08:51:17 +0100 Subject: [PATCH 01/15] add celery-types (cherry picked from commit 70982f742288051a5eeb1b15342503591f3eac12) --- requirements_test.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index 3ce92d8..1ed91ff 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,2 +1,3 @@ pytest -coverage==5.5 \ No newline at end of file +coverage==5.5 +celery-types==0.14.0 \ No newline at end of file From 85f3eed1bb86a93a6f849ba550c54bd4e843fe3d Mon Sep 17 00:00:00 2001 From: Carlo Bertini Date: Wed, 4 Jan 2023 08:51:33 +0100 Subject: [PATCH 02/15] add mypy.ini (cherry picked from commit c18b294ef982e11165f32fa9582521d1980af678) --- mypy.ini | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 mypy.ini diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..b1efbe8 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,2 @@ +[mypy] +strict = True From 1f54630a7bc0ee2b3d1caf30d4463ec12af4086a Mon Sep 17 00:00:00 2001 From: Carlo Bertini Date: Wed, 4 Jan 2023 08:53:30 +0100 Subject: [PATCH 03/15] add stubs file (cherry picked from commit 0c6bb7b9b2ffb35cb47a5001ec1f577790fede8a) --- celery_pubsub/__init__.pyi | 4 ++++ celery_pubsub/pubsub.pyi | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 celery_pubsub/__init__.pyi create mode 100644 celery_pubsub/pubsub.pyi diff --git a/celery_pubsub/__init__.pyi b/celery_pubsub/__init__.pyi new file mode 100644 index 0000000..a2a56d0 --- /dev/null +++ b/celery_pubsub/__init__.pyi @@ -0,0 +1,4 @@ +from .pubsub import publish as publish +from .pubsub import publish_now as publish_now +from .pubsub import subscribe as subscribe +from .pubsub import unsubscribe as unsubscribe diff --git a/celery_pubsub/pubsub.pyi b/celery_pubsub/pubsub.pyi new file mode 100644 index 0000000..7ee4a9a --- /dev/null +++ b/celery_pubsub/pubsub.pyi @@ -0,0 +1,21 @@ +import re +from typing import Any + +from celery import Task, group +from celery.result import AsyncResult + +class PubSubManager: + subscribed: set[tuple[str, re.Pattern[str], Task[Any, Any]]] + jobs: dict[str, group] + def publish(self, topic: str, *args: Any, **kwargs: Any) -> AsyncResult[Any]: ... + def publish_now( + self, topic: str, *args: Any, **kwargs: Any + ) -> AsyncResult[Any]: ... + def subscribe(self, topic: str, task: Task[Any, Any]) -> None: ... + def unsubscribe(self, topic: str, task: Task[Any, Any]) -> None: ... + def get_jobs(self, topic: str) -> group: ... + +def publish(topic: str, *args: Any, **kwargs: Any) -> AsyncResult[Any]: ... +def publish_now(topic: str, *args: Any, **kwargs: Any) -> AsyncResult[Any]: ... +def subscribe(topic: str, task: Task[Any, Any]) -> None: ... +def unsubscribe(topic: str, task: Task[Any, Any]) -> None: ... From d72555f0369f22640e3a9551a957279705f493c6 Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 10:15:41 +0100 Subject: [PATCH 04/15] Version bump 1.0.2. --- README.md | 62 ++++++++++++++++++++++++++++--------------------------- setup.py | 4 ++-- 2 files changed, 34 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 63c8254..c08c92d 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,8 @@ celery_pubsub.publish('some.very.good.test', 42) # task 3 only ## Changelog +* 1.0.2 + * Add stubs file for type hinting. * 1.0.1 * Changed `README.rst` to `README.md`. * Added better badges to show the supported status for each Celery & Python version. @@ -197,42 +199,42 @@ celery_pubsub.publish('some.very.good.test', 42) # task 3 only [badge-m_linux_pypy3.6_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/m_linux_pypy-3.6_celery5/shields [//]: # (Status in tagged version) -[badge-t_linux_2.7_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_2.7_celery3/shields -[badge-t_linux_2.7_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_2.7_celery4/shields -[badge-t_linux_2.7_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_2.7_celery5/shields +[badge-t_linux_2.7_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_2.7_celery3/shields +[badge-t_linux_2.7_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_2.7_celery4/shields +[badge-t_linux_2.7_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_2.7_celery5/shields -[badge-t_linux_3.4_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.4_celery3/shields -[badge-t_linux_3.4_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.4_celery4/shields -[badge-t_linux_3.4_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.4_celery5/shields +[badge-t_linux_3.4_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.4_celery3/shields +[badge-t_linux_3.4_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.4_celery4/shields +[badge-t_linux_3.4_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.4_celery5/shields -[badge-t_linux_3.5_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.5_celery3/shields -[badge-t_linux_3.5_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.5_celery4/shields -[badge-t_linux_3.5_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.5_celery5/shields +[badge-t_linux_3.5_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.5_celery3/shields +[badge-t_linux_3.5_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.5_celery4/shields +[badge-t_linux_3.5_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.5_celery5/shields -[badge-t_linux_3.6_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.6_celery3/shields -[badge-t_linux_3.6_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.6_celery4/shields -[badge-t_linux_3.6_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.6_celery5/shields +[badge-t_linux_3.6_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.6_celery3/shields +[badge-t_linux_3.6_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.6_celery4/shields +[badge-t_linux_3.6_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.6_celery5/shields -[badge-t_linux_3.7_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.7_celery3/shields -[badge-t_linux_3.7_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.7_celery4/shields -[badge-t_linux_3.7_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.7_celery5/shields +[badge-t_linux_3.7_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.7_celery3/shields +[badge-t_linux_3.7_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.7_celery4/shields +[badge-t_linux_3.7_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.7_celery5/shields -[badge-t_linux_3.8_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.8_celery3/shields -[badge-t_linux_3.8_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.8_celery4/shields -[badge-t_linux_3.8_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.8_celery5/shields +[badge-t_linux_3.8_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.8_celery3/shields +[badge-t_linux_3.8_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.8_celery4/shields +[badge-t_linux_3.8_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.8_celery5/shields -[badge-t_linux_3.9_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.9_celery3/shields -[badge-t_linux_3.9_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.9_celery4/shields -[badge-t_linux_3.9_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.9_celery5/shields +[badge-t_linux_3.9_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.9_celery3/shields +[badge-t_linux_3.9_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.9_celery4/shields +[badge-t_linux_3.9_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.9_celery5/shields -[badge-t_linux_3.10_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.10_celery3/shields -[badge-t_linux_3.10_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.10_celery4/shields -[badge-t_linux_3.10_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_3.10_celery5/shields +[badge-t_linux_3.10_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.10_celery3/shields +[badge-t_linux_3.10_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.10_celery4/shields +[badge-t_linux_3.10_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_3.10_celery5/shields -[badge-t_linux_pypy2.7_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_pypy-2.7_celery3/shields -[badge-t_linux_pypy2.7_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_pypy-2.7_celery4/shields -[badge-t_linux_pypy2.7_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_pypy-2.7_celery5/shields +[badge-t_linux_pypy2.7_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_pypy-2.7_celery3/shields +[badge-t_linux_pypy2.7_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_pypy-2.7_celery4/shields +[badge-t_linux_pypy2.7_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_pypy-2.7_celery5/shields -[badge-t_linux_pypy3.6_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_pypy-3.6_celery3/shields -[badge-t_linux_pypy3.6_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_pypy-3.6_celery4/shields -[badge-t_linux_pypy3.6_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.1_linux_pypy-3.6_celery5/shields +[badge-t_linux_pypy3.6_celery3]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_pypy-3.6_celery3/shields +[badge-t_linux_pypy3.6_celery4]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_pypy-3.6_celery4/shields +[badge-t_linux_pypy3.6_celery5]: https://byob.yarr.is/Mulugruntz/celery-pubsub/1.0.2_linux_pypy-3.6_celery5/shields diff --git a/setup.py b/setup.py index db086ca..1b7fbae 100644 --- a/setup.py +++ b/setup.py @@ -34,14 +34,14 @@ def tests_require(): setuptools.setup( name="celery-pubsub", packages=["celery_pubsub"], - version="1.0.1", + version="1.0.2", description="A Publish and Subscribe library for Celery", long_description=long_description(), author="Samuel GIFFARD", author_email="mulugruntz@gmail.com", license="MIT", url="https://github.com/Mulugruntz/celery-pubsub", - download_url="https://github.com/Mulugruntz/celery-pubsub/tarball/1.0.1", + download_url="https://github.com/Mulugruntz/celery-pubsub/tarball/1.0.2", keywords=["celery", "publish", "subscribe", "pubsub"], classifiers=[ "Development Status :: 5 - Production/Stable", From 267a4890df596af2f2f113aba105f06d01fdb884 Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 10:15:52 +0100 Subject: [PATCH 05/15] Black. --- .github/workflows/resolve_versions.py | 7 ++++++- requirements_test.txt | 2 +- tests/conftest.py | 1 - 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/resolve_versions.py b/.github/workflows/resolve_versions.py index 72df3e3..3543de8 100644 --- a/.github/workflows/resolve_versions.py +++ b/.github/workflows/resolve_versions.py @@ -81,7 +81,12 @@ def parse_args() -> Namespace: ) parser_matrix.add_argument("-n", "--package-name", type=str, help="Package name") parser_matrix.add_argument("-s", "--specifiers", type=str, help="Specifiers") - parser_matrix.add_argument("--invert", action="store_true", default=False, help="Invert matrix (only show the skipped ones)") + parser_matrix.add_argument( + "--invert", + action="store_true", + default=False, + help="Invert matrix (only show the skipped ones)", + ) return parser.parse_args() diff --git a/requirements_test.txt b/requirements_test.txt index 1ed91ff..d939409 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,3 +1,3 @@ pytest coverage==5.5 -celery-types==0.14.0 \ No newline at end of file +celery-types==0.14.0 diff --git a/tests/conftest.py b/tests/conftest.py index 6dd5d45..ebe7327 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,7 +14,6 @@ def celery_worker(): pass - else: # pragma: no cover task = celery.shared_task From 0cff25e7aaff1d8009a89a32f64ba39007578f16 Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 10:33:43 +0100 Subject: [PATCH 06/15] Minor update to `mypy.ini`. --- mypy.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mypy.ini b/mypy.ini index b1efbe8..5598a63 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,2 +1,4 @@ [mypy] strict = True +# Only check files in the `celery_pubsub` package +files = celery_pubsub From ef2d0fc276424b7b1efac77931efe7100f804a14 Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 10:34:22 +0100 Subject: [PATCH 07/15] Typo for version 1.0.2. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c08c92d..4539ca6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# celery-pubsub 1.0.1 +# celery-pubsub 1.0.2 [![image](https://travis-ci.org/Mulugruntz/celery-pubsub.svg?branch=master)](https://travis-ci.org/Mulugruntz/celery-pubsub) From a61121b0119cbb88148829d26f1fc474596f0fd3 Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 10:36:49 +0100 Subject: [PATCH 08/15] Changed Travis badge for GitHub Action badge. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4539ca6..6c49008 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # celery-pubsub 1.0.2 -[![image](https://travis-ci.org/Mulugruntz/celery-pubsub.svg?branch=master)](https://travis-ci.org/Mulugruntz/celery-pubsub) +[![Build and Test](https://github.com/Mulugruntz/celery-pubsub/actions/workflows/build.yml/badge.svg)](https://github.com/Mulugruntz/celery-pubsub/actions/workflows/build.yml) [![Code Climate](https://codeclimate.com/github/Mulugruntz/celery-pubsub/badges/gpa.svg)](https://codeclimate.com/github/Mulugruntz/celery-pubsub) [![Test Coverage](https://codeclimate.com/github/Mulugruntz/celery-pubsub/badges/coverage.svg)](https://codeclimate.com/github/Mulugruntz/celery-pubsub/coverage) [![Issue Count](https://codeclimate.com/github/Mulugruntz/celery-pubsub/badges/issue_count.svg)](https://codeclimate.com/github/Mulugruntz/celery-pubsub) From 3d3857e8a1f9831c86bc677377bbe506a080c6e1 Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 11:38:00 +0100 Subject: [PATCH 09/15] Changing `celery-types` for `celery-stubs`. Trying pypy compatibility. --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index d939409..a3fbea8 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,3 +1,3 @@ pytest coverage==5.5 -celery-types==0.14.0 +celery-stubs==0.1.3 From d4c2e6f9a1e655f3f70cf4654ffe64bb724e6ba7 Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 11:44:31 +0100 Subject: [PATCH 10/15] Revert "Changing `celery-types` for `celery-stubs`." This reverts commit 3d3857e8a1f9831c86bc677377bbe506a080c6e1. --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index a3fbea8..d939409 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,3 +1,3 @@ pytest coverage==5.5 -celery-stubs==0.1.3 +celery-types==0.14.0 From 85708bfe1a9f247c75d79efb261b06b62efce2dc Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 12:06:10 +0100 Subject: [PATCH 11/15] Adding marks to only have mypy on Python 3.7+. --- requirements_test.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index d939409..f3e57c9 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,3 +1,6 @@ pytest coverage==5.5 -celery-types==0.14.0 + +# Only for Python 3.7+ +celery-types==0.14.0; python_version >= '3.7' +mypy==1.0.0; python_version >= '3.7' From bb5ee8cecfc5be91a152f3a9af68166f20cab10c Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 12:54:37 +0100 Subject: [PATCH 12/15] Adding more marks to only have mypy CPython. --- requirements_test.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements_test.txt b/requirements_test.txt index f3e57c9..6a31a09 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,6 +1,6 @@ pytest coverage==5.5 -# Only for Python 3.7+ -celery-types==0.14.0; python_version >= '3.7' -mypy==1.0.0; python_version >= '3.7' +# Only for Python 3.7+ (also exclude pypy). +celery-types==0.14.0; python_version >= '3.7' and implementation_name != 'pypy' +mypy==1.0.0; python_version >= '3.7' and implementation_name != 'pypy' From 127a6a98e08b728e7035d7a5ba1c2fce08d41c55 Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 12:56:55 +0100 Subject: [PATCH 13/15] Add step mypy in CI. --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37d1244..1fc8cc2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,6 +109,10 @@ jobs: pip install "celery${{ matrix.celery }}" pip install pytest-github-actions-annotate-failures + - name: Check with mypy + if: !startsWith(matrix.python-version, 'pypy') && matrix.python-version >= '3.7' + run: mypy + - name: Lint with flake8 run: | pip install flake8 From 7a2d780ca947633d0e28229b4ec0e077e512c32f Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 13:02:03 +0100 Subject: [PATCH 14/15] Typo: space. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1fc8cc2..faeb8fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -110,7 +110,7 @@ jobs: pip install pytest-github-actions-annotate-failures - name: Check with mypy - if: !startsWith(matrix.python-version, 'pypy') && matrix.python-version >= '3.7' + if: ! startsWith(matrix.python-version, 'pypy') && matrix.python-version >= '3.7' run: mypy - name: Lint with flake8 From f14761eded1aab6d6f23929dd457e42b0fb178c6 Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Tue, 14 Feb 2023 13:05:55 +0100 Subject: [PATCH 15/15] Fix yaml with `${{...}}`. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index faeb8fc..a0d2118 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -110,7 +110,7 @@ jobs: pip install pytest-github-actions-annotate-failures - name: Check with mypy - if: ! startsWith(matrix.python-version, 'pypy') && matrix.python-version >= '3.7' + if: ${{ !startsWith(matrix.python-version, 'pypy') && matrix.python-version >= '3.7' }} run: mypy - name: Lint with flake8