From 0528c824ec1ab64e275bcc1fe80cd6d7f7245d26 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 28 Jan 2026 19:45:22 +0000 Subject: [PATCH 1/2] Add missing utils.py with ensure_dir function The cli.py module imports ensure_dir from docflow.utils but the utils module was not present. This adds the missing module with the ensure_dir function that creates directories with parents if they don't exist. https://claude.ai/code/session_01FapmKMbbiTWzxaGTYryDan --- src/docflow/utils.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/docflow/utils.py diff --git a/src/docflow/utils.py b/src/docflow/utils.py new file mode 100644 index 0000000..f45f02a --- /dev/null +++ b/src/docflow/utils.py @@ -0,0 +1,9 @@ +from __future__ import annotations +from pathlib import Path + + +def ensure_dir(path: str | Path) -> Path: + """Ensure the directory exists, creating it if necessary.""" + p = Path(path) + p.mkdir(parents=True, exist_ok=True) + return p From f6431efbac18512ca5ea4fd83b69fcb8b6d7fe06 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 28 Jan 2026 19:46:06 +0000 Subject: [PATCH 2/2] Add .gitignore for generated files Ignore Python cache, build artifacts, databases, and IDE files. https://claude.ai/code/session_01FapmKMbbiTWzxaGTYryDan --- .gitignore | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..706637e --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] + +# Distribution / packaging +*.egg-info/ +dist/ +build/ + +# Database +*.db + +# IDE +.idea/ +.vscode/ +*.swp + +# Testing +.pytest_cache/ +.coverage +htmlcov/