feat: Add exclude_files list and filter in blame script

This commit is contained in:
Paul Gauthier (aider) 2024-12-17 08:25:04 -08:00
parent 4942366271
commit 70312c58be

View file

@ -18,10 +18,10 @@ website_files = [
"aider/website/docs/leaderboards/index.md",
]
# AI add an exclude_files list with:
aider/website/install.ps1
aider/website/install.sh
# ..AI!
exclude_files = [
"aider/website/install.ps1",
"aider/website/install.sh",
]
def blame(start_tag, end_tag=None):
commits = get_all_commit_hashes_between_tags(start_tag, end_tag)
@ -40,6 +40,7 @@ def blame(start_tag, end_tag=None):
]
files = [f for f in files if not f.endswith("prompts.py")]
files = [f for f in files if not f.startswith("tests/fixtures/watch")]
files = [f for f in files if f not in exclude_files]
all_file_counts = {}
grand_total = defaultdict(int)