diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index f7ad205..dd36e5f 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 diff --git a/pyproject.toml b/pyproject.toml index fb8d200..be63658 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,6 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", @@ -29,7 +28,7 @@ classifiers = [ "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Testing", ] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "filelock>=3.0", "mypy>=1.0", diff --git a/src/pytest_mypy/__init__.py b/src/pytest_mypy/__init__.py index 0760256..7b35ea8 100644 --- a/src/pytest_mypy/__init__.py +++ b/src/pytest_mypy/__init__.py @@ -420,8 +420,4 @@ def pytest_terminal_summary( def pytest_unconfigure(self, config: pytest.Config) -> None: """Clean up the mypy results path.""" - try: - config.stash[stash_key["config"]].mypy_results_path.unlink() - except FileNotFoundError: # compat python < 3.8 (missing_ok=True) - # No MypyItems executed. - return + config.stash[stash_key["config"]].mypy_results_path.unlink(missing_ok=True) diff --git a/tox.ini b/tox.ini index edce1f0..9deb574 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,6 @@ minversion = 4.4 isolated_build = true envlist = - py37-pytest{7.0, 7.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x} py38-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x} py39-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x} py310-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x} @@ -15,7 +14,6 @@ envlist = [gh-actions] python = - 3.7: py37-pytest{7.0, 7.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x} 3.8: py38-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x} 3.9: py39-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x} 3.10: py310-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{1.x, 2.0, 2.x, 3.0, 3.x}