mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
refactor: Move website files list to global scope
This commit is contained in:
parent
4206920a7d
commit
f678b664ff
1 changed files with 6 additions and 6 deletions
|
@ -12,6 +12,12 @@ import semver
|
||||||
import yaml
|
import yaml
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
|
|
||||||
|
website_files = [
|
||||||
|
"aider/website/share/index.md",
|
||||||
|
"aider/website/_includes/head_custom.html",
|
||||||
|
"aider/website/docs/leaderboards/index.md",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def blame(start_tag, end_tag=None):
|
def blame(start_tag, end_tag=None):
|
||||||
commits = get_all_commit_hashes_between_tags(start_tag, end_tag)
|
commits = get_all_commit_hashes_between_tags(start_tag, end_tag)
|
||||||
|
@ -21,12 +27,6 @@ def blame(start_tag, end_tag=None):
|
||||||
|
|
||||||
revision = end_tag if end_tag else "HEAD"
|
revision = end_tag if end_tag else "HEAD"
|
||||||
files = run(["git", "ls-tree", "-r", "--name-only", revision]).strip().split("\n")
|
files = run(["git", "ls-tree", "-r", "--name-only", revision]).strip().split("\n")
|
||||||
website_files = [
|
|
||||||
"aider/website/share/index.md",
|
|
||||||
"aider/website/_includes/head_custom.html",
|
|
||||||
"aider/website/docs/leaderboards/index.md",
|
|
||||||
]
|
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
f
|
f
|
||||||
for f in files
|
for f in files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue