From b0f04f18d947cdec029f84a05844c49cc73e2ef3 Mon Sep 17 00:00:00 2001 From: ed cuss Date: Thu, 12 Mar 2026 19:51:47 +0000 Subject: [PATCH 1/2] ci: fix git actions --- .github/workflows/ci_tests.yaml | 4 ++-- .github/workflows/publish.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index f67d5aa..cccc7ff 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -12,10 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v7 with: enable-cache: true cache-dependency-glob: "uv.lock" diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 055eee4..17440cd 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -23,7 +23,7 @@ runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 @@ -73,10 +73,10 @@ permissions: contents: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v7 with: enable-cache: true cache-dependency-glob: "uv.lock" From 303609f8f6b345284ab007dca5fa026f3311de63 Mon Sep 17 00:00:00 2001 From: ed cuss Date: Sat, 25 Apr 2026 20:53:16 +0100 Subject: [PATCH 2/2] fix: accept kwargs in fake read and write fns --- pyproject.toml | 2 +- src/io_adapters/_adapters.py | 4 ++-- uv.lock | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a273510..1d23b33 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "io-adapters" -version = "0.3.1" +version = "0.3.2" description = "Dependency Injection Adapters" readme = "README.md" authors = [ diff --git a/src/io_adapters/_adapters.py b/src/io_adapters/_adapters.py index d68c113..6db3397 100644 --- a/src/io_adapters/_adapters.py +++ b/src/io_adapters/_adapters.py @@ -210,13 +210,13 @@ def __attrs_post_init__(self) -> None: self.guid_fn = self.guid_fn or fake_guid self.datetime_fn = self.datetime_fn or fake_datetime - def _read_fn(self, path: str | Path) -> Data: + def _read_fn(self, path: str | Path, **_kwargs: dict) -> Data: try: return self.files[Path(path).resolve()] except KeyError as e: raise FileNotFoundError(f"{path = } {self.files = }") from e - def _write_fn(self, data: Data, path: str | Path) -> None: + def _write_fn(self, data: Data, path: str | Path, **_kwargs: dict) -> None: self.files[Path(path).resolve()] = data def list_files(self, path: str | Path, glob_pattern: str = "*") -> list[Path]: diff --git a/uv.lock b/uv.lock index 544ae0d..5a46e35 100644 --- a/uv.lock +++ b/uv.lock @@ -426,7 +426,7 @@ wheels = [ [[package]] name = "io-adapters" -version = "0.3.1" +version = "0.3.2" source = { editable = "." } dependencies = [ { name = "attrs" },