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/.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 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(): 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 = 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 =