Skip to content

Commit

Permalink
Add Python 3.13, update tool versions (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR authored Oct 16, 2024
1 parent 19f3a45 commit 9fe95a3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ jobs:
- python-version: '3.10'
- python-version: '3.11'
- python-version: '3.12'
- python-version: '3.13'

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -48,13 +49,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
python-version: ["3.13"]
tox-job: ["mypy", "linters", "twine", "docs"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ multi_line_output = 3
[tool.mypy]
check_untyped_defs = true
ignore_missing_imports = true
no_warn_no_return = true

[tool.black]
target-version = ["py38", "py39", "py310", "py311", "py312"]
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
)
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ deps =

[testenv:mypy]
deps =
mypy==1.6.1
types-requests
types-setuptools

mypy==1.12.0
enum-tools==0.12.0
freezegun==1.5.1
pytest==8.3.3
types-requests==2.32.0.20240914
commands = mypy zyte_spider_templates tests

[testenv:linters]
Expand All @@ -43,7 +44,7 @@ commands = pre-commit run --all-files --show-diff-on-failure
[testenv:twine]
deps =
twine==5.1.1
build==1.2.1
build==1.2.2
commands =
python setup.py sdist
twine check dist/*
Expand Down
2 changes: 1 addition & 1 deletion zyte_spider_templates/documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
from enum_tools.documentation import document_enum
except ImportError:

def document_enum(func):
def document_enum(func): # type: ignore[misc]
return func

0 comments on commit 9fe95a3

Please sign in to comment.