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" 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" },