From 4011d3738d6d1349072ce866b9347adbc038f6fc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 19:56:47 +0000 Subject: [PATCH 1/4] [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.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/asottile/setup-cfg-fmt: v2.3.0 → v2.5.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.3.0...v2.5.0) - [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0) - https://github.com/pre-commit/mirrors-autopep8 → https://github.com/hhatto/autopep8 - [github.com/hhatto/autopep8: v2.0.2 → v2.0.4](https://github.com/hhatto/autopep8/compare/v2.0.2...v2.0.4) - [github.com/asottile/reorder-python-imports: v3.10.0 → v3.12.0](https://github.com/asottile/reorder-python-imports/compare/v3.10.0...v3.12.0) - [github.com/asottile/add-trailing-comma: v2.5.1 → v3.1.0](https://github.com/asottile/add-trailing-comma/compare/v2.5.1...v3.1.0) - [github.com/asottile/pyupgrade: v3.7.0 → v3.15.0](https://github.com/asottile/pyupgrade/compare/v3.7.0...v3.15.0) - [github.com/pre-commit/mirrors-mypy: v1.3.0 → v1.7.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.3.0...v1.7.0) --- .pre-commit-config.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f0f5334..fc8b5d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ exclude: ^tests/data/ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-docstring-first - id: check-yaml @@ -12,34 +12,34 @@ repos: - id: requirements-txt-fixer - id: trailing-whitespace - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.3.0 + rev: v2.5.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 6.1.0 hooks: - id: flake8 additional_dependencies: [flake8-typing-imports==1.14.0] -- repo: https://github.com/pre-commit/mirrors-autopep8 - rev: v2.0.2 +- repo: https://github.com/hhatto/autopep8 + rev: v2.0.4 hooks: - id: autopep8 - repo: https://github.com/asottile/reorder-python-imports - rev: v3.10.0 + rev: v3.12.0 hooks: - id: reorder-python-imports args: [--py3-plus] - repo: https://github.com/asottile/add-trailing-comma - rev: v2.5.1 + rev: v3.1.0 hooks: - id: add-trailing-comma args: [--py36-plus] - repo: https://github.com/asottile/pyupgrade - rev: v3.7.0 + rev: v3.15.0 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.3.0 + rev: v1.7.0 hooks: - id: mypy From 8fc66926060571ae9f7083c87246d33cc4923e89 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 19:57:06 +0000 Subject: [PATCH 2/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 4d45ec6..fffd20d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,7 +22,7 @@ install_requires = pycodestyle tokenize-rt>=3.2.0 tomli;python_version<'3.11' -python_requires = >=3.7 +python_requires = >=3.8 [options.packages.find] exclude = From df40e62aa35450ae12e8ab8504eda7b977084f12 Mon Sep 17 00:00:00 2001 From: MarcoGorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Fri, 24 Nov 2023 19:36:00 +0000 Subject: [PATCH 3/4] update coverage for old cythons --- .github/workflows/latest_cython.yml | 2 +- .github/workflows/tox.yml | 2 +- tests/main_test.py | 4 ++-- tox.ini | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/latest_cython.yml b/.github/workflows/latest_cython.yml index 4b13111..1312b9e 100644 --- a/.github/workflows/latest_cython.yml +++ b/.github/workflows/latest_cython.yml @@ -9,7 +9,7 @@ jobs: tox: strategy: matrix: - python-version: ["3.11"] + python-version: ["3.12"] os: [windows-latest, ubuntu-latest] runs-on: ${{ matrix.os }} diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index b59b5a3..0bdb8c8 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -9,7 +9,7 @@ jobs: tox: strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11"] os: [windows-latest, ubuntu-latest] runs-on: ${{ matrix.os }} diff --git a/tests/main_test.py b/tests/main_test.py index a9f9b66..f6cd2da 100644 --- a/tests/main_test.py +++ b/tests/main_test.py @@ -205,7 +205,7 @@ def test_misplaced_comma_old_cython( capsys: Any, src: str, expected: str, -) -> None: +) -> None: # pragma: no cover ret = _main(src, 't.py', ext='.pyx', no_pycodestyle=True) out, _ = capsys.readouterr() assert out == expected @@ -679,7 +679,7 @@ def test_noop(capsys: Any, src: str) -> None: tuple(Cython.__version__.split('.')) > ('3',), reason='invalid syntax in new Cython', ) -def test_noop_old_cython(capsys: Any, src: str) -> None: +def test_noop_old_cython(capsys: Any, src: str) -> None: # pragma: no cover ret = _main(src, 't.py', ext='.pyx', no_pycodestyle=True) out, _ = capsys.readouterr() assert out == '' diff --git a/tox.ini b/tox.ini index 5667bb5..7993369 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{37,38,39,310,311}, docs, docs-links +envlist = py{38,39,310,311,312}, docs, docs-links [testenv] deps = From 94f3b916895546a8b15720554cf66bfa564a1673 Mon Sep 17 00:00:00 2001 From: MarcoGorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Fri, 24 Nov 2023 19:41:03 +0000 Subject: [PATCH 4/4] 311 coverage --- cython_lint/cython_lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cython_lint/cython_lint.py b/cython_lint/cython_lint.py index 71d3275..c74a2a9 100644 --- a/cython_lint/cython_lint.py +++ b/cython_lint/cython_lint.py @@ -20,7 +20,7 @@ if sys.version_info >= (3, 11): # pragma: no cover import tomllib -else: +else: # pragma: no cover import tomli as tomllib with warnings.catch_warnings():