diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ba5a96..4b7b6fd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,19 +1,19 @@ repos: - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 24.1.1 hooks: - id: black args: [--safe, --quiet] language_version: python3 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + rev: 7.0.0 hooks: - id: flake8 exclude: docs diff --git a/docs/news.rst b/docs/news.rst index 365dd76..ad30b29 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -1,6 +1,13 @@ Release Notes ============= +4.0.3 (pending) +------------------ + +* Support pytest 8.0 + + * Thanks to `@noamkush `_ for the PR. + 4.0.2 (2023-11-20) ------------------ diff --git a/pyproject.toml b/pyproject.toml index 99a87e2..f58210a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Quality Assurance", diff --git a/src/pytest_selenium/pytest_selenium.py b/src/pytest_selenium/pytest_selenium.py index e83e5c1..2af0c9a 100644 --- a/src/pytest_selenium/pytest_selenium.py +++ b/src/pytest_selenium/pytest_selenium.py @@ -400,7 +400,7 @@ def pytest_addoption(parser): parser.addini( "selenium_exclude_debug", help="debug to exclude from capture", - default=os.getenv("SELENIUM_EXCLUDE_DEBUG"), + default=os.getenv("SELENIUM_EXCLUDE_DEBUG", ""), ) _auth_choices = ("none", "token", "hour", "day") diff --git a/tox.ini b/tox.ini index 8252bb1..b386650 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py{3.7, 3.8, 3.9, 3.10, 3.11, py3.9}, docs, linting +envlist = py{3.7, 3.8, 3.9, 3.10, 3.11, 3.12, py3.9}, docs, linting isolated_build = True [testenv]