diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b67ba95..d125479 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,9 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: 3.11 - name: Install dependencies @@ -25,15 +25,15 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] include: - os: ubuntu-latest python-version: '3.13' runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -61,7 +61,7 @@ jobs: os: [ ubuntu-latest, macos-latest, windows-latest ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 - name: Get conda diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a26a517..25d774f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -10,15 +10,15 @@ repos: exclude: meta.yaml - id: check-added-large-files - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.11.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.18.2 hooks: - id: mypy - additional_dependencies: [types-python-slugify==6.1.0] + additional_dependencies: [types-python-slugify==8.0.2.20240310] - repo: https://github.com/pycqa/flake8 - rev: 7.1.1 + rev: 7.3.0 hooks: - id: flake8 diff --git a/local-requirements.txt b/local-requirements.txt index f140b55..e522429 100644 --- a/local-requirements.txt +++ b/local-requirements.txt @@ -1,11 +1,11 @@ -black==24.3.0 +black==25.11.0 pytest-cov==7.0.0 -mypy==0.961 +mypy==1.18.2 build==1.2.2.post1 twine==4.0.1 wheel==0.38.1 -flake8==7.1.1 -pre-commit==4.0.1 +flake8==7.3.0 +pre-commit==4.4.0 Django==4.2.24 pytest-xdist==3.8.0 pytest-asyncio==1.3.0 diff --git a/pytest-playwright-asyncio/pyproject.toml b/pytest-playwright-asyncio/pyproject.toml index f5e8af6..36bbd77 100644 --- a/pytest-playwright-asyncio/pyproject.toml +++ b/pytest-playwright-asyncio/pyproject.toml @@ -17,17 +17,18 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Framework :: Pytest", ] dynamic = ["version"] dependencies = [ - "playwright>=1.18", - "pytest>=6.2.4,<10.0.0", + "playwright>=1.26", + "pytest>=7.4.4,<10.0.0", "pytest-base-url>=1.0.0,<3.0.0", "python-slugify>=6.0.0,<9.0.0", - "pytest-asyncio>=0.24.0", + "pytest-asyncio>=0.26.0", ] [project.urls] diff --git a/pytest-playwright/pyproject.toml b/pytest-playwright/pyproject.toml index aeaed2f..1c23d49 100644 --- a/pytest-playwright/pyproject.toml +++ b/pytest-playwright/pyproject.toml @@ -17,14 +17,15 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Framework :: Pytest", ] dynamic = ["version"] dependencies = [ - "playwright>=1.18", - "pytest>=6.2.4,<10.0.0", + "playwright>=1.26", + "pytest>=7.4.4,<10.0.0", "pytest-base-url>=1.0.0,<3.0.0", "python-slugify>=6.0.0,<9.0.0", ] diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py index 539a883..f20e4d9 100644 --- a/tests/test_asyncio.py +++ b/tests/test_asyncio.py @@ -489,7 +489,7 @@ async def test_base_url(page): """ ) result = testdir.runpytest("--browser", "test123") - assert any(["--browser: invalid choice" in line for line in result.errlines]) + assert any("--browser: invalid choice" in line for line in result.errlines) def test_browser_context_args_device(testdir: pytest.Testdir) -> None: diff --git a/tests/test_sync.py b/tests/test_sync.py index 374d919..d5d0c1a 100644 --- a/tests/test_sync.py +++ b/tests/test_sync.py @@ -13,10 +13,10 @@ # limitations under the License. import os -from pathlib import Path import signal import subprocess import sys +from pathlib import Path import pytest @@ -497,7 +497,7 @@ def test_base_url(page): """ ) result = testdir.runpytest("--browser", "test123") - assert any(["--browser: invalid choice" in line for line in result.errlines]) + assert any("--browser: invalid choice" in line for line in result.errlines) def test_django(testdir: pytest.Testdir) -> None: