Skip to content

Conversation

@cpyle0819
Copy link
Contributor

No description provided.

@cpyle0819 cpyle0819 self-assigned this Jul 3, 2025
@cpyle0819 cpyle0819 added the Enhancement A general update to the code base. label Jul 3, 2025
@cpyle0819 cpyle0819 mentioned this pull request Jul 3, 2025
@cpyle0819
Copy link
Contributor Author

Looks like doc_gen.py#collect_snippets has a call stack that leads to os.scandir and path.is_dir(). Need to handle that.

@cpyle0819 cpyle0819 removed the Enhancement A general update to the code base. label Jul 3, 2025
@cpyle0819
Copy link
Contributor Author

Explicitly removed label so this doesn't accidentally get merged.

- Add abstract readlines method to Fs class
- Implement readlines in PathFs using file.readlines()
- Implement readlines in RecordFs using splitlines(keepends=True)
- Add comprehensive tests for both implementations
- Test various scenarios: empty files, no final newline, different line endings
* Abstract filesystem operations in file_utils.py

- Add fs parameter to walk_with_gitignore and get_files functions
- Replace direct filesystem calls with Fs interface methods
- Use fs.stat(), fs.readlines(), and fs.list() instead of os.scandir() and open()
- Exclude .gitignore files from walk results
- Add comprehensive tests using RecordFs for deterministic testing
- Test gitignore filtering, skip functions, and edge cases

* Address PR feedback: use fully qualified imports, absolute paths, and add nested gitignore test

- Use fully qualified imports in file_utils.py and file_utils_test.py
- Convert all test paths to absolute paths as requested
- Add comprehensive nested gitignore test case
- Improve RecordFs.list() method to handle intermediate directories properly
@cpyle0819 cpyle0819 requested a review from DavidSouther July 7, 2025 20:06
@cpyle0819 cpyle0819 requested a review from DavidSouther July 7, 2025 20:27
@cpyle0819 cpyle0819 added the Enhancement A general update to the code base. label Jul 7, 2025
@cpyle0819 cpyle0819 merged commit 144fa6e into main Jul 7, 2025
2 of 3 checks passed
@cpyle0819 cpyle0819 deleted the doc-gen-updates branch July 8, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement A general update to the code base.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants