Commit Graph
13 Commits
Author SHA1 Message Date
Jared Howland a56792ae0d test: Gedcom file with no FamilySearchID
Added a negative-case assertion
to ensure get_fs_id returns an empty string when an Individual lacks the _FSFTID
tag
2026-04-16 15:08:15 -06:00
Jared Howland 14cd8beadc feat: add FamilySearch ID to frontmatter 2026-04-16 13:47:59 -06:00
AlexKucera ae575f413c Handles file locking issues on Windows
Addresses potential test failures on Windows due to locked files during temporary directory cleanup.

Implements `ignore_errors=True` when removing temporary directories to prevent `shutil.rmtree` from failing when files are still locked by the process.
2025-11-02 19:53:46 +01:00
AlexKucera 3fd10f8530 Enhances individual filename generation
Improves the individual filename generation logic to include the birth year if available, providing more informative filenames.

Also updates the logging setup to use WARNING level for the root logger and INFO for the main module, and modifies the markdown generator to use YAML frontmatter for metadata.
2025-11-02 19:51:08 +01:00
AlexKucera c177211359 Renames unused parser variable
The 'parser' variable was assigned but not used. This commit
renames it to '_parser' to indicate that it is intentionally
unused.
2025-11-02 17:44:27 +01:00
AlexKucera 6d7a41fc88 Simplifies code and improves error handling
Refactors code for clarity and conciseness by removing unused variables.

Improves error handling by logging only the necessary information,
making debugging easier.
2025-11-02 17:38:00 +01:00
AlexKucera b335a137d3 Enhances individual death info and note generation
Extracts and includes the death year from the death date in individual data.

Adds a flag to control subdirectory usage for generated files.
This ensures correct linking and image paths in notes when using a
subdirectory structure (people/, stories/, media/).

Also, improves error logging during note generation.
2025-11-02 17:29:49 +01:00
AlexKucera 759b966598 Refactors Individual class for parser access
Simplifies Individual class initialization by directly passing the parser instance instead of the GedcomParser object.
This change streamlines the code and avoids unnecessary object attribute access.
Also, it ensures name formatting preserves the original capitalization.
2025-11-02 17:25:06 +01:00
AlexKucera 46502f7d66 Ignores unused variable in test
Updates test to ignore the unused `media_dir` variable
returned by `extract_gedzip`. This prevents linting warnings
without changing the functionality of the test.
2025-11-02 16:03:24 +01:00
AlexKucera 2cd47a70b1 Enhances media file copying with robust handling
Improves media file import process with:
- Recursive directory structure preservation
- Case-insensitive extension filtering
- Collision handling with unique filename generation
- Error logging for copy failures

Adds comprehensive test cases to validate new media file copying behavior
2025-11-02 16:01:29 +01:00
AlexKucera 7c3eb1dde0 Enhances media file discovery in GEDCOM extraction
Improves media file search across nested directories by:
- Using rglob for recursive media file discovery
- Supporting more file extensions (including uppercase variants)
- Logging media file locations with greater detail

Enables finding media files in complex directory structures with multiple subdirectories
2025-11-02 14:37:18 +01:00
AlexKucera 64f42deb29 Improves death year extraction and pytest configuration
Fixes death year extraction using regex to correctly parse years
Removes manual sys.path modifications in test files
Adds pythonpath configuration to pytest.ini for simpler imports

Enhances test coverage for life span formatting
2025-11-02 14:35:23 +01:00
AlexKucera 3e7dc7e916 Initializes project with GEDCOM to Markdown converter
Sets up core functionality for converting genealogy GEDCOM files to Obsidian markdown notes

Implements key components:
- GEDCOM parsing and individual data extraction
- Markdown note generation with rich metadata
- Index file creation
- Comprehensive test suite for robust functionality

Adds initial project structure, configuration, and essential modules for genealogy data conversion
2025-11-01 14:20:53 +01:00