Commit graph

126 commits

Author SHA1 Message Date
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
Kirill Markin
dbfa602cd3
Refactor devide logic by files and more tests 2024-12-16 01:29:31 +01:00
Kirill Markin
9b03465644
Merge pull request #17 from adorosario/main
Added localized dockerized build instructions with documentation
2024-12-16 00:57:49 +01:00
Kirill Markin
6a434e5174
Merge pull request #16 from himwho/main
allows wildcards and pattern ignores for specific files
2024-12-16 00:53:26 +01:00
Kirill Markin
38dac27984
fix Refactor load_ignore_specs function definition for consistency 2024-12-16 00:51:56 +01:00
Kirill Markin
4e86177cfd
Merge pull request #15 from AndrewGerstenslager/ignore-patterns
added --ignore-patterns flag to ignore content from cli
2024-12-16 00:50:22 +01:00
Kirill Markin
fd70f24eed
.cursorignore file 2024-12-16 00:30:19 +01:00
Kirill Markin
46941115f1
strinc typing 2024-12-16 00:29:17 +01:00
Kirill Markin
d93a1d1fb0
old utc waring fix 2024-12-16 00:29:07 +01:00