Automate the analysis of GitHub repositories for LLMs with RepoToTextForLLMs. Fetch READMEs, structure, and non-binary files efficiently. Outputs include analysis prompts to aid in comprehensive repo evaluation
Hi there,
I was using it for a c++ project and in the repo there was a binary output file that was not declared in the .gitignore.
It would be interesting to have a check to ignore binary files.
The solution would be simple, something like this:
def is_binary_file_with_mimetype(file_path):
mime_type, _ = mimetypes.guess_type(file_path)
if mime_type is not None
return mime_type.startswith('text/') == False
return False
Hi there, I was using it for a c++ project and in the repo there was a binary output file that was not declared in the .gitignore. It would be interesting to have a check to ignore binary files.
The solution would be simple, something like this:
I could open a PR if you're interested.
Thank you.