From d7596008a3dd01d239ed3b5ad96724c2316b9e8f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 16:25:27 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v5.0.0) - [github.com/asottile/yesqa: v1.3.0 → v1.5.0](https://github.com/asottile/yesqa/compare/v1.3.0...v1.5.0) - [github.com/PyCQA/isort: 5.10.1 → 5.13.2](https://github.com/PyCQA/isort/compare/5.10.1...5.13.2) - [github.com/psf/black: 21.12b0 → 24.10.0](https://github.com/psf/black/compare/21.12b0...24.10.0) - [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v5.0.0) - [github.com/asottile/pyupgrade: v2.31.0 → v3.19.1](https://github.com/asottile/pyupgrade/compare/v2.31.0...v3.19.1) - [github.com/PyCQA/flake8: 4.0.1 → 7.1.1](https://github.com/PyCQA/flake8/compare/4.0.1...7.1.1) - git://github.com/Lucas-C/pre-commit-hooks-markup → https://github.com/Lucas-C/pre-commit-hooks-markup --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9175b0a..d3a1092 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,23 +1,23 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: 'v4.1.0' + rev: 'v5.0.0' hooks: - id: check-merge-conflict - repo: https://github.com/asottile/yesqa - rev: v1.3.0 + rev: v1.5.0 hooks: - id: yesqa - repo: https://github.com/PyCQA/isort - rev: '5.10.1' + rev: '5.13.2' hooks: - id: isort - repo: https://github.com/psf/black - rev: '21.12b0' + rev: '24.10.0' hooks: - id: black language_version: python3 # Should be a command that runs python3.6+ - repo: https://github.com/pre-commit/pre-commit-hooks - rev: 'v4.1.0' + rev: 'v5.0.0' hooks: - id: end-of-file-fixer exclude: >- @@ -44,17 +44,17 @@ repos: args: ['--allow-missing-credentials'] - id: detect-private-key - repo: https://github.com/asottile/pyupgrade - rev: 'v2.31.0' + rev: 'v3.19.1' hooks: - id: pyupgrade args: ['--py36-plus'] - repo: https://github.com/PyCQA/flake8 - rev: '4.0.1' + rev: '7.1.1' hooks: - id: flake8 exclude: "^docs/" -- repo: git://github.com/Lucas-C/pre-commit-hooks-markup +- repo: https://github.com/Lucas-C/pre-commit-hooks-markup rev: v1.0.1 hooks: - id: rst-linter From d788f1f17f30d8d39679e1d9631a8bb283efdce0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 16:28:54 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- aiozipkin/transport.py | 2 +- setup.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/aiozipkin/transport.py b/aiozipkin/transport.py index 671b43f..b8141f7 100644 --- a/aiozipkin/transport.py +++ b/aiozipkin/transport.py @@ -14,7 +14,7 @@ DEFAULT_TIMEOUT = aiohttp.ClientTimeout(total=5 * 60) -BATCHES_MAX_COUNT = 10 ** 4 +BATCHES_MAX_COUNT = 10**4 DataList = List[Dict[str, Any]] SndBatches = Deque[Tuple[int, DataList]] diff --git a/setup.py b/setup.py index 4aebb3a..636b3ab 100644 --- a/setup.py +++ b/setup.py @@ -5,10 +5,6 @@ from setuptools import find_packages, setup # type: ignore -if sys.version_info < (3, 6, 0): - raise RuntimeError("aiozipkin does not support Python earlier than 3.6.0") - - def read(f: str) -> str: return open(os.path.join(os.path.dirname(__file__), f)).read().strip()