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 .mise.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tools]
pdm = "2.26"
python = ["3.12", "3.13", "3.14", "3.11", "3.10", "3.9"]
python = ["3.12", "3.13", "3.14", "3.11", "3.10"]

[env]
'_'.python.venv = { path = ".venv", create = true }
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PDM and Poetry plugin to sync your pre-commit versions with your lockfile and au

## Supported versions

- Python 3.9+ to 3.14+
- Python 3.10+ to 3.14+
- PDM 2.7.4 to 2.26+
- Python 3.12.7+ requires PDM 2.20.1+
- Poetry 1.6 to 2.3+
Expand Down
130 changes: 1 addition & 129 deletions pdm.lock

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = "PDM plugin to sync your pre-commit versions with your lockfile, a
readme = "README.md"
license = { file = "LICENSE" }
authors = [ { name = "Gabriel Dugny", email = "sync-pre-commit-lock@dugny.me" } ]
requires-python = ">=3.9"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
Expand All @@ -20,7 +20,6 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -35,7 +34,6 @@ dependencies = [
"packaging>=24.1",
"strictyaml>=1.7.3",
"tomli>=2; python_version<'3.11'",
"typing-extensions; python_version<'3.10'",
]
optional-dependencies.pdm = [
"pdm>=2.7.4",
Expand Down
8 changes: 1 addition & 7 deletions src/sync_pre_commit_lock/db.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import sys
from typing import TypedDict

if sys.version_info >= (3, 10):
from typing import TypeAlias
else:
from typing_extensions import TypeAlias
from typing import TypeAlias, TypedDict


class RepoInfo(TypedDict):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pdm/test_pdm_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_pdm_lock(pdm: PDMCallable, project: Project):
def test_pdm_install(pdm: PDMCallable, project: Project):
# Needed by pdm 2.7
# See: https://github.com/pdm-project/pdm/issues/917
project.pyproject.metadata["requires-python"] = ">=3.9"
project.pyproject.metadata["requires-python"] = ">=3.10"
project.pyproject.write()
pdm("add ruff==0.6.7 -v", obj=project, strict=True)

Expand Down
23 changes: 10 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ env_list =
report
py{314}-pdm{226, HEAD}
py{313, 312}-pdm{226, 225, 224, 223, 222, 221, 220, HEAD}
py{311, 310, 39}-pdm{226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 29, 28, 27, HEAD}
py{313, 312, 311, 310, 39}-poetry{22, 21, 20, 18, 17, 16, HEAD}
py{311, 310}-pdm{226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 29, 28, 27, HEAD}
py{313, 312, 311, 310}-poetry{22, 21, 20, 18, 17, 16, HEAD}
py{314}-poetry{23, 22, 18, HEAD}

[testenv]
set_env =
py{310,311,312,313,314}-poetry{23,22, 21, 20, 18, 17, 16, HEAD}: COVERAGE_FILE = .coverage.{envname}
py{310,311}-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,221,222,223,226, 225, 224,HEAD}: COVERAGE_FILE = .coverage.{envname}
py{312,313}-pdm{220,221,222,223,226, 225, 224, 226,HEAD}: COVERAGE_FILE = .coverage.{envname}
py{314}-pdm{224,225,226,HEAD}: COVERAGE_FILE = .coverage.{envname}
py{39,310,311,312,313,314}-poetry{23,22, 21, 20, 18, 17, 16, HEAD}: COVERAGE_FILE = .coverage.{envname}
py{39,310,311}-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,221,222,223,226, 225, 224,HEAD}: COVERAGE_FILE = .coverage.{envname}
commands =
pytest --cov --cov-append --cov-report=term-missing {posargs:-vv} --cov-config=pyproject.toml
allowlist_externals =
coverage
pdm
pytest
depends =
report: py{314, 313, 312, 311, 310, 39}-pdm{226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 29, 28, 27, HEAD}
report: py{314, 313, 312, 311, 310, 39}-poetry{22, 21, 20, 18, 17, 16, HEAD}
py{314, 313, 312, 311, 310, 39}-pdm{226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 29, 28, 27, HEAD}: clean
py{314, 313, 312, 311, 310, 39}-poetry{23, 22, 21, 20, 18, 17, 16, HEAD}: clean
report: py{314, 313, 312, 311, 310}-pdm{226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 29, 28, 27, HEAD}
report: py{314, 313, 312, 311, 310}-poetry{22, 21, 20, 18, 17, 16, HEAD}
py{314, 313, 312, 311, 310}-pdm{226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 29, 28, 27, HEAD}: clean
py{314, 313, 312, 311, 310}-poetry{23, 22, 21, 20, 18, 17, 16, HEAD}: clean

[testenv:clean]
skip_install = true
Expand All @@ -46,14 +46,12 @@ commands =
coverage html
coverage xml

[testenv:py{39,310,311,312,313,314}-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,221,222,223,225,224,225,226,HEAD}]
[testenv:py{310,311,312,313,314}-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,221,222,223,225,224,225,226,HEAD}]
package = editable
deps =
-r requirements-tox.txt
py310-pdm214: httpx<0.28
py311-pdm214: httpx<0.28
py39-pdm214: httpx<0.28
py39-pdm27: importlib-metadata<8
pdm210: pdm<2.11,>=2.10
pdm211: pdm<2.12,>=2.11
pdm212: pdm<2.13,>=2.12
Expand Down Expand Up @@ -81,7 +79,7 @@ deps =
pdm29: pdm<2.10,>=2.9
pdmHEAD: pdm@ git+https://github.com/pdm-project/pdm.git

[testenv:py{314,313,312, 311, 310, 39}-poetry{16, 17, 18, 20, 21, 22, 23,HEAD}]
[testenv:py{314,313,312, 311, 310}-poetry{16, 17, 18, 20, 21, 22, 23,HEAD}]
package = editable
deps =
-r requirements-tox.txt
Expand All @@ -96,7 +94,6 @@ deps =

[gh]
python =
3.9= py39-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,221,222,223,225,224,HEAD},py39-poetry{23, 22, 21, 20, 18, 17, 16, HEAD}, report, clean
3.10= py310-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,221,222,223,225,224,HEAD}, py310-poetry{23, 22, 21, 20, 18, 17, 16, HEAD}, report, clean
3.11= py311-pdm{27,28,29,210,211,212,213,214,215,216,217,218,219,220,221,222,223,225,224,HEAD}, py311-poetry{23, 22, 21, 20, 18, 17, 16, HEAD}, report, clean
3.12= py312-pdm{220,221,222,223,225,224,226,HEAD}, py312-poetry{23, 22, 21, 20, 18, 17, 16, HEAD}, report, clean
Expand Down
Loading