Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
5 changes: 5 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
changelog:
exclude:
authors:
- dependabot[bot]
- pre-commit-ci[bot]
5 changes: 0 additions & 5 deletions .github/release.yml

This file was deleted.

7 changes: 3 additions & 4 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ jobs:
fail-fast: false
matrix:
env:
- "3.14"
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
- "3.8"
- type
- dev
- pkg_meta
Expand All @@ -39,9 +38,9 @@ jobs:
cache-dependency-glob: "pyproject.toml"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install tox
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv
run: uv tool install --python-preference only-managed --python 3.14 tox --with tox-uv
- name: Install Python
if: startsWith(matrix.env, '3.') && matrix.env != '3.13'
if: startsWith(matrix.env, '3.') && matrix.env != '3.14'
run: uv python install --python-preference only-managed ${{ matrix.env }}
- name: Setup test suite
run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
cache-dependency-glob: "pyproject.toml"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build package
run: uv build --python 3.13 --python-preference only-managed --sdist --wheel . --out-dir dist
run: uv build --python 3.14 --python-preference only-managed --sdist --wheel . --out-dir dist
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ repos:
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies: ["tomli>=2.0.1"]
additional_dependencies: ["tomli>=2.2.1"]
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: "1.6.0"
hooks:
- id: tox-ini-fmt
args: ["-p", "fix"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.7.0"
rev: "v2.10.0"
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.13.3"
rev: "v0.14.0"
hooks:
- id: ruff-format
- id: ruff
Expand All @@ -34,8 +34,8 @@ repos:
hooks:
- id: prettier
additional_dependencies:
- prettier@3.3.3
- "@prettier/[email protected].1"
- prettier@3.6.2
- "@prettier/[email protected].2"
- repo: meta
hooks:
- id: check-hooks-apply
Expand Down
18 changes: 7 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[build-system]
build-backend = "hatchling.build"
requires = [
"hatch-vcs>=0.4",
"hatchling>=1.25",
"hatch-vcs>=0.5",
"hatchling>=1.27",
]

[project]
Expand All @@ -17,16 +17,14 @@ license.file = "LICENSE"
maintainers = [
{ name = "Bernát Gábor", email = "[email protected]" },
]
requires-python = ">=3.8"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -38,13 +36,13 @@ dynamic = [
"version",
]
dependencies = [
"pytest>=8.3.3",
"tomli>=2.0.1; python_version<'3.11'",
"pytest>=8.4.2",
"tomli>=2.2.1; python_version<'3.11'",
]
optional-dependencies.testing = [
"covdefaults>=2.3",
"coverage>=7.6.1",
"pytest-mock>=3.14",
"coverage>=7.10.7",
"pytest-mock>=3.15.1",
]
urls.Homepage = "https://github.com/pytest-dev/pytest-env"
urls.Source = "https://github.com/pytest-dev/pytest-env"
Expand All @@ -56,7 +54,6 @@ build.hooks.vcs.version-file = "src/pytest_env/version.py"
version.source = "vcs"

[tool.ruff]
target-version = "py38"
line-length = 120
format.preview = true
format.docstring-code-line-length = 100
Expand All @@ -66,7 +63,6 @@ lint.select = [
]
lint.ignore = [
"ANN101", # no type annotation for self
"ANN401", # allow Any as type annotation
"COM812", # Conflict with formatter
"CPY", # No copyright statements
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
Expand Down
5 changes: 4 additions & 1 deletion src/pytest_env/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
import sys
from dataclasses import dataclass
from itertools import chain
from typing import Iterator
from typing import TYPE_CHECKING

import pytest

if TYPE_CHECKING:
from collections.abc import Iterator

if sys.version_info >= (3, 11): # pragma: >=3.11 cover
import tomllib
else: # pragma: <3.11 cover
Expand Down
16 changes: 8 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tox]
requires =
tox>=4.2
tox-uv>=1.11.3
tox>=4.30.3
tox-uv>=1.28
env_list =
fix
3.14
3.13
3.12
3.11
3.10
3.9
type
pkg_meta
skip_missing_interpreters = true
Expand Down Expand Up @@ -37,7 +37,7 @@ commands =
description = run static analysis and style check using flake8
skip_install = true
deps =
pre-commit-uv>=4.1.1
pre-commit-uv>=4.1.5
pass_env =
HOMEPATH
PROGRAMDATA
Expand All @@ -47,7 +47,7 @@ commands =
[testenv:type]
description = run type check on code base
deps =
mypy==1.11.2
mypy==1.18.2
commands =
mypy --strict src
mypy --strict tests
Expand All @@ -56,9 +56,9 @@ commands =
description = check that the long description is valid
skip_install = true
deps =
check-wheel-contents>=0.6
twine>=5.1.1
uv>=0.4.10
check-wheel-contents>=0.6.3
twine>=6.2
uv>=0.8.22
commands =
uv build --sdist --wheel --out-dir {env_tmp_dir} .
twine check {env_tmp_dir}{/}*
Expand Down