Bump dev deps and update Python target versions#976
Merged
Conversation
- Update mypy, pytest and extensions, ruff, and packaging. - Note that ruff-lsp is now merged into ruff.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…dding Python 3.14 as test targets
…stdlib compatibility
- Also improve typing and usage of `make_container()` fixture
for more information, see https://pre-commit.ci
- test_port, test_commit had to be adapted to latest Docker APIs. - Update image refs used in test_services and centralize the definition to conftest.py
for more information, see https://pre-commit.ci
- This reduce dependency to GitHub
for more information, see https://pre-commit.ci
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #976 +/- ##
==========================================
+ Coverage 80.66% 81.59% +0.92%
==========================================
Files 24 24
Lines 1443 1418 -25
Branches 206 190 -16
==========================================
- Hits 1164 1157 -7
+ Misses 187 184 -3
+ Partials 92 77 -15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This was referenced Oct 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_services(3.6, 3.7 → 3.13, 3.14) and move the version definition toconftest.pyfor easier future updatestestcontainers-pythonpackage DOES NOT depend onaiodockerbutdocker-py. So it is safe to use it for our test purpose.bash test.shbut you may just runpytestright away!mypy,pytestand its extensions,ruff, andpackagingruff-lspis now integrated into ruff (as of 0.11).docker_hostfallback to127.0.0.1:2376when it fails to detect existence of the\\.\pipe\docker_enginefile as described in the dockerd official documentation. However, this does not work on GitHub Action runners. 😞Ref to dockerd docs)
Note
This PR disables the CI matrix for Windows because
Path(r"\\.\pipe").iterdir()includesdocker_enginewhilePath(r"\\.\pipe\docker_engine").exists()returns False on GitHub Action's Windows runners. It works consistently on my local Windows machine with Docker Desktop.I don't have enough time to debug this kind of weired problems, so let's skip over it.
If anyone wants "full" Windows platform support, please contribute to this issue.