Skip to content

Commit 59cd43d

Browse files
committed
Add uv and freezegun dependencies
1 parent 9e56dec commit 59cd43d

File tree

5 files changed

+92
-3
lines changed

5 files changed

+92
-3
lines changed

devbox.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.3/.schema/devbox.schema.json",
33
"packages": [
44
5-
5+
6+
"uv@latest"
67
],
78
"shell": {
89
"init_hook": ". ${VENV_DIR}/bin/activate"

devbox.lock

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,54 @@
125125
"store_path": "/nix/store/2mab9iiwhcqwk75qwvp3zv0bvbiaq6cs-python3-3.13.3"
126126
}
127127
}
128+
},
129+
"uv@latest": {
130+
"last_modified": "2025-07-28T17:09:23Z",
131+
"resolved": "github:NixOS/nixpkgs/648f70160c03151bc2121d179291337ad6bc564b#uv",
132+
"source": "devbox-search",
133+
"version": "0.8.2",
134+
"systems": {
135+
"aarch64-darwin": {
136+
"outputs": [
137+
{
138+
"name": "out",
139+
"path": "/nix/store/db9y1b002zlnyjgpsnbl9hvlwsiqajl4-uv-0.8.2",
140+
"default": true
141+
}
142+
],
143+
"store_path": "/nix/store/db9y1b002zlnyjgpsnbl9hvlwsiqajl4-uv-0.8.2"
144+
},
145+
"aarch64-linux": {
146+
"outputs": [
147+
{
148+
"name": "out",
149+
"path": "/nix/store/bdps6h2gn2rysavc3cq2slqnjlsyyk03-uv-0.8.2",
150+
"default": true
151+
}
152+
],
153+
"store_path": "/nix/store/bdps6h2gn2rysavc3cq2slqnjlsyyk03-uv-0.8.2"
154+
},
155+
"x86_64-darwin": {
156+
"outputs": [
157+
{
158+
"name": "out",
159+
"path": "/nix/store/91g6383zq1wbiik2an7g6yfrj294c19v-uv-0.8.2",
160+
"default": true
161+
}
162+
],
163+
"store_path": "/nix/store/91g6383zq1wbiik2an7g6yfrj294c19v-uv-0.8.2"
164+
},
165+
"x86_64-linux": {
166+
"outputs": [
167+
{
168+
"name": "out",
169+
"path": "/nix/store/swq8qrr7n5gkc1b4940q62a3ll52prgl-uv-0.8.2",
170+
"default": true
171+
}
172+
],
173+
"store_path": "/nix/store/swq8qrr7n5gkc1b4940q62a3ll52prgl-uv-0.8.2"
174+
}
175+
}
128176
}
129177
}
130178
}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ max-line-length = 100
108108
[tool.uv]
109109
dev-dependencies = [
110110
"hatch>=1.14.1",
111+
"freezegun>=1.5",
111112
]
112113

113114
[tool.hatch.metadata.hooks.fancy-pypi-readme]

tests/test_ulid.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ def test_pydantic_protocol() -> None:
217217
class Model(BaseModel):
218218
ulid: Optional[ULID] = None # noqa: FA100
219219

220+
model: Model | None = None
220221
for value in [ulid, str(ulid), int(ulid), bytes(ulid)]:
221222
model = Model(ulid=value)
222223
assert isinstance(model.ulid, ULID)
@@ -226,6 +227,7 @@ class Model(BaseModel):
226227
with pytest.raises(ValidationError):
227228
Model(ulid=value)
228229

230+
assert model is not None
229231
model_dict = model.model_dump()
230232
ulid_from_dict = model_dict["ulid"]
231233
assert ulid_from_dict == ulid
@@ -243,7 +245,7 @@ class Model(BaseModel):
243245
assert {
244246
"maxLength": 26,
245247
"minLength": 26,
246-
"pattern": "[01234567][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{25}",
248+
"pattern": "[0-7][0123456789ABCDEFGHJKMNPQRSTVWXYZ]{25}",
247249
"type": "string",
248250
} in model_json_schema["properties"]["ulid"]["anyOf"]
249251
assert {

uv.lock

Lines changed: 38 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)