From 6c40bf74bca1d9d0635508ac0d45043fad9a4d69 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 7 Sep 2024 15:21:17 +0000 Subject: [PATCH 1/2] Bump the packages group with 13 updates Bumps the packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [pytest](https://github.com/pytest-dev/pytest) | `7.4.0` | `8.3.2` | | [pytest-runner](https://github.com/pytest-dev/pytest-runner) | `6.0.0` | `6.0.1` | | [isort](https://github.com/pycqa/isort) | `5.12.0` | `5.13.2` | | [flake8](https://github.com/pycqa/flake8) | `6.1.0` | `7.1.1` | | [mypy](https://github.com/python/mypy) | `1.2.0` | `1.11.2` | | [black](https://github.com/psf/black) | `23.7.0` | `24.8.0` | | [aiohttp](https://github.com/aio-libs/aiohttp) | `3.8.5` | `3.10.5` | | [setuptools](https://github.com/pypa/setuptools) | `68.0.0` | `74.1.2` | | [wheel](https://github.com/pypa/wheel) | `0.41.1` | `0.44.0` | | [twine](https://github.com/pypa/twine) | `4.0.2` | `5.1.1` | | [pytest-aiohttp](https://github.com/aio-libs/pytest-aiohttp) | `1.0.4` | `1.0.5` | | [croniter](https://github.com/kiorky/croniter) | `1.4.1` | `3.0.3` | | [types-croniter](https://github.com/python/typeshed) | `1.4.0.1` | `3.0.3.20240731` | Updates `pytest` from 7.4.0 to 8.3.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/7.4.0...8.3.2) Updates `pytest-runner` from 6.0.0 to 6.0.1 - [Release notes](https://github.com/pytest-dev/pytest-runner/releases) - [Changelog](https://github.com/pytest-dev/pytest-runner/blob/main/CHANGES.rst) - [Commits](https://github.com/pytest-dev/pytest-runner/compare/v6.0.0...v6.0.1) Updates `isort` from 5.12.0 to 5.13.2 - [Release notes](https://github.com/pycqa/isort/releases) - [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md) - [Commits](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) Updates `flake8` from 6.1.0 to 7.1.1 - [Commits](https://github.com/pycqa/flake8/compare/6.1.0...7.1.1) Updates `mypy` from 1.2.0 to 1.11.2 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.2.0...v1.11.2) Updates `black` from 23.7.0 to 24.8.0 - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/23.7.0...24.8.0) Updates `aiohttp` from 3.8.5 to 3.10.5 - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst) - [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.5...v3.10.5) Updates `setuptools` from 68.0.0 to 74.1.2 - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](https://github.com/pypa/setuptools/compare/v68.0.0...v74.1.2) Updates `wheel` from 0.41.1 to 0.44.0 - [Release notes](https://github.com/pypa/wheel/releases) - [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst) - [Commits](https://github.com/pypa/wheel/compare/0.41.1...0.44.0) Updates `twine` from 4.0.2 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/4.0.2...v5.1.1) Updates `pytest-aiohttp` from 1.0.4 to 1.0.5 - [Release notes](https://github.com/aio-libs/pytest-aiohttp/releases) - [Changelog](https://github.com/aio-libs/pytest-aiohttp/blob/master/CHANGES.rst) - [Commits](https://github.com/aio-libs/pytest-aiohttp/compare/v1.0.4...v1.0.5) Updates `croniter` from 1.4.1 to 3.0.3 - [Changelog](https://github.com/kiorky/croniter/blob/master/CHANGELOG.rst) - [Commits](https://github.com/kiorky/croniter/compare/1.4.1...3.0.3) Updates `types-croniter` from 1.4.0.1 to 3.0.3.20240731 - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:development update-type: version-update:semver-major dependency-group: packages - dependency-name: pytest-runner dependency-type: direct:development update-type: version-update:semver-patch dependency-group: packages - dependency-name: isort dependency-type: direct:development update-type: version-update:semver-minor dependency-group: packages - dependency-name: flake8 dependency-type: direct:development update-type: version-update:semver-major dependency-group: packages - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-minor dependency-group: packages - dependency-name: black dependency-type: direct:development update-type: version-update:semver-major dependency-group: packages - dependency-name: aiohttp dependency-type: direct:development update-type: version-update:semver-minor dependency-group: packages - dependency-name: setuptools dependency-type: direct:development update-type: version-update:semver-major dependency-group: packages - dependency-name: wheel dependency-type: direct:development update-type: version-update:semver-minor dependency-group: packages - dependency-name: twine dependency-type: direct:development update-type: version-update:semver-major dependency-group: packages - dependency-name: pytest-aiohttp dependency-type: direct:development update-type: version-update:semver-patch dependency-group: packages - dependency-name: croniter dependency-type: direct:production update-type: version-update:semver-major dependency-group: packages - dependency-name: types-croniter dependency-type: direct:development update-type: version-update:semver-major dependency-group: packages ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 6be538b..b755879 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,13 +1,13 @@ -pytest==7.4.0 -pytest-runner==6.0.0 -isort==5.12.0 -flake8==6.1.0 -mypy==1.2.0 -black==23.7.0 -aiohttp==3.8.5 -setuptools==68.0.0 -wheel==0.41.1 -twine==4.0.2 -pytest-aiohttp==1.0.4 -croniter==1.4.1 -types-croniter==1.4.0.1 +pytest==8.3.2 +pytest-runner==6.0.1 +isort==5.13.2 +flake8==7.1.1 +mypy==1.11.2 +black==24.8.0 +aiohttp==3.10.5 +setuptools==74.1.2 +wheel==0.44.0 +twine==5.1.1 +pytest-aiohttp==1.0.5 +croniter==3.0.3 +types-croniter==3.0.3.20240731 From 3bd4b2c5ff02aae05a572ec5673f4f43bfd20045 Mon Sep 17 00:00:00 2001 From: Iurii Pliner Date: Sat, 7 Sep 2024 16:55:14 +0100 Subject: [PATCH 2/2] Add E704 to flake8 ignore list --- Makefile | 2 +- aio_background/job.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 06a9621..db8b0b4 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ mypy: @mypy --strict --ignore-missing-imports aio_background flake8: - @flake8 --max-line-length 120 --ignore C901,C812,E203 --extend-ignore W503 aio_background tests + @flake8 --max-line-length 120 --ignore C901,C812,E203,E704 --extend-ignore W503 aio_background tests lint: black isort flake8 mypy diff --git a/aio_background/job.py b/aio_background/job.py index 9b17ecd..5f62d9a 100644 --- a/aio_background/job.py +++ b/aio_background/job.py @@ -8,12 +8,10 @@ class Job(abc.ABC): @property @abc.abstractmethod - def is_running(self) -> bool: - ... + def is_running(self) -> bool: ... @abc.abstractmethod - async def close(self, *, timeout: float = 0.5) -> bool: - ... + async def close(self, *, timeout: float = 0.5) -> bool: ... class SingleTaskJob(Job):