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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: ./.github/actions/setup
with:
type: test
python-version: "3.10"
python-version: "3.11"
poetry-version: ${{ env.POETRY_VERSION }}


Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
rev: v0.7.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
144 changes: 64 additions & 80 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@ optional = true
pre-commit = ">=2.20,<4.0"
requests = "*"
Sphinx = ">=5.1.1,<8.0.0"
sphinx-rtd-theme = ">=1,<3"
sphinx-rtd-theme = ">=1,<4"
reno = "*"
types-requests = "*"
pytest = ">=7.1.3,<9.0.0"
pytest-cov = ">=3,<6"
coverage = ">=6.4.4,<8.0.0"
types-toml = "*"
toml = "^0.10.2"
tomli = { version = "*", markers = "python_version < '3.11'"}
black = "*"
ruff = "*"
mypy = "*"
Expand All @@ -59,7 +58,7 @@ optional = true

[tool.poetry.group.doc.dependencies]
Sphinx = ">=5.1.1,<8.0.0"
sphinx-rtd-theme = ">=1,<3"
sphinx-rtd-theme = ">=1,<4"


[tool.poetry.group.test]
Expand All @@ -72,8 +71,7 @@ coverage = "*"
requests = "*"
types-requests = "*"
pre-commit = "*"
types-toml = "*"
toml = "*"
tomli = { version = "*", markers = "python_version < '3.11'"}
mypy = "*"

[build-system]
Expand Down
12 changes: 9 additions & 3 deletions tests/test_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
from typing import Iterable

import pytest
import toml

try:
import tomllib
except ImportError:
# Unfortunately mypy cannot handle this try/expect pattern, and "type: ignore"
# is the simplest work-around. See: https://github.com/python/mypy/issues/1153
import tomli as tomllib # type: ignore

# TODO: skip if poetry is not available or add mark to test it explicitly

Expand All @@ -31,8 +37,8 @@ def pyproject_path() -> Path:
@pytest.fixture(scope="session")
def pyproject(pyproject_path: Path):
assert pyproject_path.is_file()
with pyproject_path.open() as infile:
pyproject = toml.load(infile)
with pyproject_path.open("rb") as infile:
pyproject = tomllib.load(infile)
return pyproject


Expand Down