Skip to content

Commit

Permalink
Merge pull request #78 from MarcoGorelli/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
MarcoGorelli authored Nov 24, 2023
2 parents 893f0ef + 94f3b91 commit c0a33b2
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/latest_cython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion cython_lint/cython_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
4 changes: 2 additions & 2 deletions tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 == ''
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down

0 comments on commit c0a33b2

Please sign in to comment.