mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 20:00:41 +08:00
Add file ignore functionality and update documentation for ignore patterns
This commit is contained in:
@ -15,7 +15,7 @@ def filter_bad_extensions(files):
|
||||
return [f for f in files if f.filename is not None and is_valid_file(f.filename)]
|
||||
|
||||
|
||||
def is_valid_file(filename):
|
||||
def is_valid_file(filename: str):
|
||||
return filename.split('.')[-1] not in bad_extensions
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user