Skip to content

Conversation

@synw
Copy link

@synw synw commented Sep 6, 2024

I added new features (with the help of some language models):

  • A terminal.py script to run the program from the command line
  • Support for .gitignore files: it will read the .gitignore file if it finds one in the processed directory and ignore the listed files
  • A .gitignore file or a list of directories can be specified as options

Notes: I had to add a .gitignore file to be able to ignore my local .venv folder. I also formatted file_processor.py with Black

synw added 4 commits September 6, 2024 12:59
- Updated file_processor.py to exclude files and directories listed in .gitignore when processing folders.
- Added process_gitignore function to read and parse .gitignore files.
- Modified process_folder function to use global ignore patterns from .gitignore and additional ignored paths.
@synw
Copy link
Author

synw commented Sep 6, 2024

Note about the gitignore parsing: I made a naive implementation but it would be better to use something like https://github.com/mherrmann/gitignore_parser to better handle the list (things like ! are not supported in the current implementation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant