diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4323286..8e20ecbd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,19 +4,19 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 24.2.0 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/pycqa/flake8 - rev: 7.1.0 + rev: 7.1.1 hooks: - id: flake8 additional_dependencies: - flake8-docstrings - flake8-print - repo: https://github.com/adamchainz/blacken-docs - rev: 1.16.0 + rev: 1.19.0 hooks: - id: blacken-docs additional_dependencies: - - black==24.2.0 + - black==24.10.0 diff --git a/pyproject.toml b/pyproject.toml index 63f6744d..19622e41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.black] -target-version = ["py38", "py39", "py310", "py311"] +target-version = ["py39", "py310", "py311", "py312", "py313"] [tool.isort] profile = "black" diff --git a/tox.ini b/tox.ini index b171a34b..21c19341 100644 --- a/tox.ini +++ b/tox.ini @@ -109,8 +109,8 @@ deps = [testenv:mypy] extras = provider deps = - mypy==1.8.0 - types-setuptools + mypy==1.11.2 + pytest commands = mypy scrapy_zyte_api tests @@ -120,9 +120,10 @@ commands = pre-commit run --all-files --show-diff-on-failure [testenv:twine-check] deps = - twine + twine==5.1.1 + build==1.2.2 commands = - python setup.py sdist + python -m build --sdist twine check dist/* [testenv:docs]