Commit graph

16 commits

Author SHA1 Message Date
Luke Craig
e1f82ad13b pylint adjust no-else-return 2025-10-27 10:16:57 -04:00
Luke Craig
3de8a7a8ca core: simplify generate_output_content 2025-10-27 10:16:02 -04:00
Luke Craig
2475609834 Add minimal handling for broken symlinks in generate_output_content 2025-08-11 13:35:39 -04:00
Kirill Markin
b04dd8df63
Fix pylint logging-fstring-interpolation warning
- Replace f-string with lazy % formatting in logging.debug() call
- Resolves W1203 pylint warning for better logging performance
- Achieves 10.00/10 pylint rating
2025-05-25 11:07:43 +03:00
Kirill Markin
57026bd52e
Enhance error handling in process_line and update display path in save_repo_to_text
- Add fallback logic for os.path.relpath in process_line to handle cases where it fails, ensuring robust path resolution.
- Update save_repo_to_text to use basename for displaying file paths, improving clarity in success messages and output.
- Modify tests to assert on basename instead of relative path, aligning with the new display logic.
2025-05-25 11:02:06 +03:00
Kirill Markin
3731c01a20
Refactor logging statements in core.py for improved readability
- Split long logging messages into multiple lines for better clarity
- Ensure consistent formatting across logging calls
- Minor adjustments to maintain code readability
2025-05-25 10:48:38 +03:00
Kirill Markin
7a60741471
Remove unused IO import from core.py 2025-05-25 10:48:37 +03:00
Zhan Li
e066b481af add support for splitted text by maximum word count 2025-05-25 00:11:54 -07:00
Kirill Markin
9431ff9d07
Change output format to XML
- Change output format from markdown code blocks to structured XML
- Add XML tags for better structure and parsing
- Update documentation and README
- Update version to 0.6.0
2025-04-19 13:26:18 +03:00
Kirill Markin
d124fa24cc
Refactor tree structure generation and filtering logic
- Simplified the `get_tree_structure` function by extracting the tree command execution and filtering into separate functions: `run_tree_command` and `filter_tree_output`.
- Introduced `process_line`, `extract_full_path`, and `mark_non_empty_dirs` to enhance readability and maintainability of the filtering process.
- Updated `load_ignore_specs` to improve loading of ignore specifications from settings and .gitignore files.
- Added clipboard functionality to copy output content after saving.
- Cleaned up and clarified docstrings for better understanding of function purposes.
2024-12-17 17:16:39 +01:00
Kirill Markin
ecfbed98ac
load_ignore_specs too meny local variables fix 2024-12-17 17:06:38 +01:00
Kirill Markin
2a08a70cf4
linter cleanup 2024-12-17 17:06:16 +01:00
Kirill Markin
a364328e60
remove_empty_dirs new logic and linter cleanup 2024-12-17 15:06:59 +01:00
Kirill Markin
5f283feefd
linter cleanup 2024-12-17 14:41:42 +01:00
Kirill Markin
e39e7a8896
strict-typing-and-error-handling 2024-12-16 10:24:02 +01:00
Kirill Markin
dbfa602cd3
Refactor devide logic by files and more tests 2024-12-16 01:29:31 +01:00