diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7309ae0..4adf6c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: - id: check-added-large-files args: ['--maxkb=1000'] - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 23.12.0 hooks: - id: black args: [--target-version, py36] @@ -27,8 +27,8 @@ repos: hooks: - id: blacken-docs additional_dependencies: [black==22.1.0] -- repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.292 +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.1.8 hooks: - id: ruff args: ['--fix'] @@ -45,7 +45,7 @@ repos: args: ["--ignore", "E,W,F"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.5.1' + rev: 'v1.7.1' hooks: - id: mypy files: ^pypdf/.* diff --git a/requirements/ci.txt b/requirements/ci.txt index 5d7662d..564460b 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -4,11 +4,19 @@ # # pip-compile requirements/ci.in # +aiohttp==3.9.1 + # via black +aiosignal==1.3.1 + # via aiohttp astor==0.8.1 # via flake8-simplify +async-timeout==4.0.3 + # via aiohttp attrs==23.1.0 - # via flake8-bugbear -black==23.9.1 + # via + # aiohttp + # flake8-bugbear +black==23.12.0 # via -r requirements/ci.in click==8.1.7 # via black @@ -19,19 +27,29 @@ flake8==6.1.0 # flake8-comprehensions # flake8-isort # flake8-simplify -flake8-bugbear==23.9.16 +flake8-bugbear==23.12.2 # via -r requirements/ci.in flake8-comprehensions==3.14.0 # via -r requirements/ci.in -flake8-isort==6.1.0 +flake8-isort==6.1.1 # via -r requirements/ci.in flake8-simplify==0.21.0 # via -r requirements/ci.in -isort==5.12.0 +frozenlist==1.4.1 + # via + # aiohttp + # aiosignal +idna==3.6 + # via yarl +isort==5.13.2 # via flake8-isort mccabe==0.7.0 # via flake8 -mypy==1.5.1 +multidict==6.0.4 + # via + # aiohttp + # yarl +mypy==1.7.1 # via -r requirements/ci.in mypy-extensions==1.0.0 # via @@ -39,21 +57,23 @@ mypy-extensions==1.0.0 # mypy packaging==23.2 # via black -pathspec==0.11.2 +pathspec==0.12.1 # via black -platformdirs==3.11.0 +platformdirs==4.1.0 # via black -pycodestyle==2.11.0 +pycodestyle==2.11.1 # via flake8 pyflakes==3.1.0 # via flake8 -ruff==0.0.292 +ruff==0.1.8 # via -r requirements/ci.in tomli==2.0.1 # via # black # mypy -typing-extensions==4.8.0 +typing-extensions==4.9.0 # via # black # mypy +yarl==1.9.4 + # via aiohttp diff --git a/requirements/dev.in b/requirements/dev.in index e1a2640..c86cfc9 100644 --- a/requirements/dev.in +++ b/requirements/dev.in @@ -1,6 +1,6 @@ black pip-tools -pre-commit +pre-commit>=3.2.0 pytest pytest-cov pytest-socket diff --git a/requirements/dev.txt b/requirements/dev.txt index f91da16..837d6b6 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -4,44 +4,60 @@ # # pip-compile requirements/dev.in # -black==23.9.1 +aiohttp==3.9.1 + # via black +aiosignal==1.3.1 + # via aiohttp +async-timeout==4.0.3 + # via aiohttp +attrs==23.1.0 + # via aiohttp +black==23.12.0 # via -r requirements/dev.in build==1.0.3 # via pip-tools -certifi==2023.7.22 +certifi==2023.11.17 # via requests cffi==1.16.0 # via cryptography cfgv==3.4.0 # via pre-commit -charset-normalizer==3.3.0 +charset-normalizer==3.3.2 # via requests click==8.1.7 # via # black # pip-tools -coverage[toml]==7.3.2 - # via pytest-cov -cryptography==41.0.4 +coverage[toml]==7.3.3 + # via + # coverage + # pytest-cov +cryptography==41.0.7 # via secretstorage -distlib==0.3.7 +distlib==0.3.8 # via virtualenv docutils==0.20.1 # via readme-renderer -exceptiongroup==1.1.3 +exceptiongroup==1.2.0 # via pytest -filelock==3.12.4 +filelock==3.13.1 # via virtualenv -identify==2.5.30 +frozenlist==1.4.1 + # via + # aiohttp + # aiosignal +identify==2.5.33 # via pre-commit -idna==3.4 - # via requests -importlib-metadata==6.8.0 +idna==3.6 + # via + # requests + # yarl +importlib-metadata==7.0.0 # via # build # keyring # twine -importlib-resources==6.1.0 +importlib-resources==6.1.1 # via keyring iniconfig==2.0.0 # via pytest @@ -51,7 +67,7 @@ jeepney==0.8.0 # via # keyring # secretstorage -keyring==24.2.0 +keyring==24.3.0 # via twine markdown-it-py==3.0.0 # via rich @@ -59,9 +75,13 @@ mdurl==0.1.2 # via markdown-it-py more-itertools==10.1.0 # via jaraco-classes +multidict==6.0.4 + # via + # aiohttp + # yarl mypy-extensions==1.0.0 # via black -nh3==0.2.14 +nh3==0.2.15 # via readme-renderer nodeenv==1.8.0 # via pre-commit @@ -70,29 +90,29 @@ packaging==23.2 # black # build # pytest -pathspec==0.11.2 +pathspec==0.12.1 # via black pip-tools==7.3.0 # via -r requirements/dev.in pkginfo==1.9.6 # via twine -platformdirs==3.11.0 +platformdirs==4.1.0 # via # black # virtualenv pluggy==1.3.0 # via pytest -pre-commit==3.4.0 +pre-commit==3.5.0 # via -r requirements/dev.in pycparser==2.21 # via cffi -pygments==2.16.1 +pygments==2.17.2 # via # readme-renderer # rich pyproject-hooks==1.0.0 # via build -pytest==7.4.2 +pytest==7.4.3 # via # -r requirements/dev.in # pytest-cov @@ -116,7 +136,7 @@ requests-toolbelt==1.0.0 # via twine rfc3986==2.0.0 # via twine -rich==13.6.0 +rich==13.7.0 # via twine secretstorage==3.3.3 # via keyring @@ -130,20 +150,22 @@ tomli==2.0.1 # pytest twine==4.0.2 # via -r requirements/dev.in -typing-extensions==4.8.0 +typing-extensions==4.9.0 # via # black # rich -urllib3==2.0.6 +urllib3==2.1.0 # via # requests # twine -virtualenv==20.24.5 +virtualenv==20.25.0 # via pre-commit -wheel==0.41.2 +wheel==0.42.0 # via # -r requirements/dev.in # pip-tools +yarl==1.9.4 + # via aiohttp zipp==3.17.0 # via # importlib-metadata diff --git a/requirements/docs.txt b/requirements/docs.txt index 9dac485..8e1fe43 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -8,22 +8,22 @@ alabaster==0.7.13 # via sphinx attrs==23.1.0 # via -r requirements/docs.in -babel==2.13.0 +babel==2.14.0 # via sphinx -certifi==2023.7.22 +certifi==2023.11.17 # via requests -charset-normalizer==3.3.0 +charset-normalizer==3.3.2 # via requests docutils==0.17.1 # via # myst-parser # sphinx # sphinx-rtd-theme -idna==3.4 +idna==3.6 # via requests imagesize==1.4.1 # via sphinx -importlib-metadata==6.8.0 +importlib-metadata==7.0.0 # via sphinx jinja2==3.1.2 # via @@ -43,7 +43,7 @@ myst-parser==0.16.1 # via -r requirements/docs.in packaging==23.2 # via sphinx -pygments==2.16.1 +pygments==2.17.2 # via sphinx pytz==2023.3.post1 # via babel @@ -75,7 +75,7 @@ sphinxcontrib-qthelp==1.0.3 # via sphinx sphinxcontrib-serializinghtml==1.1.5 # via sphinx -urllib3==2.0.6 +urllib3==2.1.0 # via requests zipp==3.17.0 # via importlib-metadata diff --git a/sample-files b/sample-files index b60ca63..964fb47 160000 --- a/sample-files +++ b/sample-files @@ -1 +1 @@ -Subproject commit b60ca63512466d1bafc587a2b223961b23a8e48a +Subproject commit 964fb47b0fbfa89864680582640ae4eedf143890