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
4 changes: 2 additions & 2 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "io-adapters"
version = "0.3.1"
version = "0.3.2"
description = "Dependency Injection Adapters"
readme = "README.md"
authors = [
Expand Down
4 changes: 2 additions & 2 deletions src/io_adapters/_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

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