mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style: Format code with linter
This commit is contained in:
parent
04b3ada7f7
commit
ef4c40c692
1 changed files with 17 additions and 20 deletions
|
@ -416,8 +416,7 @@ def get_testimonials_js():
|
|||
"""
|
||||
# Path to README.md, relative to this script
|
||||
readme_path = os.path.join(
|
||||
os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
|
||||
"README.md"
|
||||
os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "README.md"
|
||||
)
|
||||
|
||||
testimonials = []
|
||||
|
@ -436,9 +435,9 @@ def get_testimonials_js():
|
|||
break
|
||||
|
||||
# Process testimonial lines
|
||||
if in_testimonials_section and line.strip().startswith("- *\""):
|
||||
if in_testimonials_section and line.strip().startswith('- *"'):
|
||||
# Extract the quote text: between *" and "*
|
||||
quote_match = line.split("*\"")[1].split("\"*")[0].strip()
|
||||
quote_match = line.split('*"')[1].split('"*')[0].strip()
|
||||
|
||||
# Extract the author: between "— [" and "]"
|
||||
author_match = line.split("— [")[1].split("]")[0].strip()
|
||||
|
@ -446,11 +445,9 @@ def get_testimonials_js():
|
|||
# Extract the link: between "(" and ")"
|
||||
link_match = line.split("](")[1].split(")")[0].strip()
|
||||
|
||||
testimonials.append({
|
||||
"text": quote_match,
|
||||
"author": author_match,
|
||||
"link": link_match
|
||||
})
|
||||
testimonials.append(
|
||||
{"text": quote_match, "author": author_match, "link": link_match}
|
||||
)
|
||||
|
||||
# Format as JavaScript array
|
||||
if not testimonials:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue