Skip to content

Commit

Permalink
Bump tool versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Oct 14, 2024
1 parent 011215d commit c69fe9e
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -46,9 +46,9 @@ jobs:
tox-job: ["mypy", "docs"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.13.1
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 24.3.0
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
rev: 1.19.0
hooks:
- id: blacken-docs
additional_dependencies:
- black==24.3.0
- black==24.10.0
9 changes: 1 addition & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import sys
from pathlib import Path

import sphinx_rtd_theme

sys.path.insert(0, os.path.abspath("../"))


Expand Down Expand Up @@ -58,7 +56,7 @@
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = ".rst"
source_suffix = {".rst": "restructuredtext"}

# The master toctree document.
master_doc = "index"
Expand Down Expand Up @@ -86,11 +84,6 @@
#
html_theme = "sphinx_rtd_theme"

# Add any paths that contain custom themes here, relative to this directory.
# Add path to the RTD explicitly to robustify builds (otherwise might
# fail in a clean Debian build env)
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ profile = "black"
multi_line_output = 3

[tool.black]
target-version = ["py38", "py39", "py310", "py311", "py312"]
target-version = ["py39", "py310", "py311", "py312", "py313"]
7 changes: 4 additions & 3 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ async def test_run(queries, expected_response, store_errors, exception):
async_client_mock.return_value.iter = request_parallel_mock

# Patch the AsyncZyteAPI class in __main__ with the mock
with patch("zyte_api.__main__.AsyncZyteAPI", async_client_mock), patch(
"zyte_api.__main__.create_session"
) as create_session_mock:
with (
patch("zyte_api.__main__.AsyncZyteAPI", async_client_mock),
patch("zyte_api.__main__.create_session") as create_session_mock,
):
# Mock create_session to return an AsyncMock
create_session_mock.return_value = AsyncMock()

Expand Down
13 changes: 8 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ commands =

[testenv:mypy]
deps =
mypy==0.982
mypy==1.12.0
pytest==8.3.3
Twisted==24.7.0
types-tqdm==4.66.0.20240417

commands = mypy --ignore-missing-imports --no-warn-no-return \
commands = mypy --ignore-missing-imports \
zyte_api \
tests

Expand All @@ -39,8 +42,8 @@ commands = pre-commit run --all-files --show-diff-on-failure

[testenv:twine]
deps =
twine==4.0.2
build==1.0.3
twine==5.1.1
build==1.2.2
commands =
python setup.py sdist
python -m build --sdist
twine check dist/*

0 comments on commit c69fe9e

Please sign in to comment.