Commit graph

134 commits

Author SHA1 Message Date
Luke Craig
2f798c7a85
Merge 5c6a95ddfe into 77209f30aa 2025-10-28 10:57:59 -04:00
Luke Craig
5c6a95ddfe Add --skip-binary option to CLI and update save_repo_to_text to handle binary files 2025-10-28 10:57:48 -04:00
Luke Craig
77209f30aa
Add minimal handling for broken symlinks in generate_output_content (#32)
Some checks failed
Run Tests / test (3.11) (push) Has been cancelled
Run Tests / test (3.13) (push) Has been cancelled
Run Tests / test (3.9) (push) Has been cancelled
* Add minimal handling for broken symlinks in generate_output_content

* core: simplify generate_output_content

* pylint adjust no-else-return
2025-10-28 09:27:44 +01:00
Kirill Markin
8a94182b3d
Bump version to 0.8.0
Some checks failed
Run Tests / test (3.11) (push) Has been cancelled
Run Tests / test (3.13) (push) Has been cancelled
Run Tests / test (3.9) (push) Has been cancelled
2025-10-25 15:33:35 +02:00
Kirill Markin
bcb0d82191
refactor: reorganize cursor rules into .cursor directory
- Move cursor rules from .cursorrules to .cursor/index.mdc
- Create CLAUDE.md and AGENTS.md symlinks in project root
- Delete deprecated .cursorrules file
- Symlinks point to .cursor/index.mdc for consistent rule management
2025-10-25 15:11:43 +02:00
Kirill Markin
2807344752
Merge pull request #35 from kirill-markin/fix-issue-26-windows-tree-command
Fix tree command for Windows
2025-10-25 15:02:46 +02:00
Kirill Markin
3721ed45f0
Fix tree command for Windows (fixes #26)
- Add platform detection to run_tree_command
- Use 'cmd /c tree /a /f' syntax on Windows
- Keep 'tree -a -f --noreport' syntax on Unix/Linux/Mac
- Modernize subprocess call with text=True and encoding='utf-8'
- Add stderr=subprocess.PIPE for better error handling

All 43 tests pass successfully.
2025-10-25 15:02:18 +02:00
Kirill Markin
de1c84eca3
Fix test assertion for content splitting logic
- Corrected test_generate_output_content_splitting_very_small_limit to expect 10 words instead of 8
- The test now properly accounts for opening tag (2 words) + raw content (8 words) in the same segment
- Reflects actual behavior where opening tag and content are grouped together when they fit within word limit
2025-05-25 11:20:34 +03:00
Kirill Markin
0ace858645
Add debug output to understand CI test failure 2025-05-25 11:14:12 +03:00
Kirill Markin
44153cde98
Fix failing test: test_generate_output_content_splitting_very_small_limit
- Corrected word count expectations for closing XML tag
- Fixed test logic to match actual output segment structure
- The closing tag '</content>' is 1 word, not 2 as previously assumed
- All 43 tests now pass successfully
2025-05-25 11:12:48 +03: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
14d2b3b36e
Fix GitHub Actions tests
- Remove Python 3.8 from test matrix (incompatible with requires-python >=3.9)
- Add proper type annotations for pytest fixtures (capsys, caplog)
2025-05-25 11:05:22 +03:00
Kirill Markin
689dd362ec
Update test functions to include explicit type annotations for caplog
- Modify test_load_additional_specs_invalid_max_words_string, test_load_additional_specs_invalid_max_words_negative, and test_load_additional_specs_max_words_is_none_in_yaml to specify caplog as pytest.LogCaptureFixture.
- Update test_save_repo_to_text_stdout_with_splitting and test_save_repo_to_text_empty_segments to annotate capsys and caplog respectively for improved type safety and clarity.
2025-05-25 11:03:20 +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
241ce0ef70
Fix CI: Enable dev dependencies for pylint
- Uncomment [project.optional-dependencies] dev section
- Remove duplicate Poetry dev dependencies
- Fix pylint command not found error in GitHub Actions
- Resolves CI failure in PR #28
2025-05-25 10:53:11 +03:00
Kirill Markin
d7badce9ae
Merge pull request #28 from kirill-markin/feature/word-count-splitting
Add support for splitting text by maximum word count
2025-05-25 10:49:35 +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
Kirill Markin
5c5b0ab941
Bump version to 0.7.0 for word count splitting feature 2025-05-25 10:48:36 +03:00
Zhan Li
34aa48c0a1 address test errors 2025-05-25 00:33:35 -07: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
58b4b23eae
Merge pull request #25 from TheGhulam/main
chore: Added package-lock.json to ignore-content in default settings
2025-03-12 17:06:40 +02:00
Ghulam Ahmed
d8977b8cf4 chore: Added package-lock.json to ignore-content in default settings 2025-03-08 22:59:52 +03:00
Kirill Markin
cde732c57d
docker instructions cleanup 2024-12-30 15:58:04 +01:00
Kirill Markin
7c32b7a565
readme cleanup 2024-12-18 08:33:43 +01:00
Kirill Markin
a9d54aa0ca
readme cleanup 2024-12-18 01:09:20 +01:00
Kirill Markin
1817078e46
Merge pull request #23 from kirill-markin/refactoring/cleanup
Refactoring/cleanup
2024-12-17 17:19:55 +01:00
Kirill Markin
4d99a1aa59
tests matrix python-version reduce 2024-12-17 17:18:12 +01: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
17c7bb76e8
pylint to pyproject and git workflows 2024-12-17 15:16:03 +01:00
Kirill Markin
62e6daf19c
new version 2024-12-17 15:15:44 +01:00
Kirill Markin
4eac47029f
linter clenaup 2024-12-17 15:10:49 +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
0cba3592f2
chore: bump version to 0.5.3 2024-12-16 10:42:52 +01:00
Kirill Markin
2a8f31cf18
more python-version for tests 2024-12-16 10:40:13 +01:00
Kirill Markin
6bcd21f40f
fix pyproject usage 2024-12-16 10:38:09 +01:00
Kirill Markin
fae0657b04
Merge pull request #22 from kirill-markin:feature/workflow-tests
workflow tests
2024-12-16 10:34:41 +01:00
Kirill Markin
9567b8bb6d
workflow tests 2024-12-16 10:34:22 +01:00
Kirill Markin
b2148b4b5b
Merge pull request #21 from kirill-markin:feature/pyproject
pyproject
2024-12-16 10:31:49 +01:00
Kirill Markin
d89052115a
pyproject 2024-12-16 10:31:30 +01:00
Kirill Markin
6198b4f410
Merge pull request #20 from kirill-markin:feature/strict-typing-and-error-handling
strict-typing-and-error-handling
2024-12-16 10:24:28 +01:00
Kirill Markin
e39e7a8896
strict-typing-and-error-handling 2024-12-16 10:24:02 +01:00
Kirill Markin
5e1ae59375
version update 2024-12-16 07:45:39 +01:00
Kirill Markin
8ac3d0b727
version commint 2024-12-16 01:38:07 +01:00
Kirill Markin
577d42746d
Merge pull request #19 from kirill-markin/feature/python-strict-typing
Feature/python strict typing
2024-12-16 01:36:46 +01:00
Kirill Markin
a7e906c294
Merge pull request #18 from kirill-markin:feature/code-structure-tests
Refactor devide logic by files and more tests
2024-12-16 01:30:19 +01:00