mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
refac to help_pats
This commit is contained in:
parent
6c92dedac1
commit
929aa7f9ac
3 changed files with 12 additions and 12 deletions
|
@ -8,20 +8,10 @@ import importlib_resources
|
|||
|
||||
from aider import __version__
|
||||
from aider.dump import dump # noqa: F401
|
||||
from aider.help_pats import exclude_website_pats
|
||||
|
||||
warnings.simplefilter("ignore", category=FutureWarning)
|
||||
|
||||
exclude_website_pats = [
|
||||
"examples/**",
|
||||
"_posts/**",
|
||||
"HISTORY.md",
|
||||
"docs/benchmarks*md",
|
||||
"docs/ctags.md",
|
||||
"docs/unified-diffs.md",
|
||||
"docs/leaderboards/index.md",
|
||||
"assets/**",
|
||||
]
|
||||
|
||||
|
||||
def get_package_files():
|
||||
for path in importlib_resources.files("aider.website").iterdir():
|
||||
|
|
10
aider/help_pats.py
Normal file
10
aider/help_pats.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
exclude_website_pats = [
|
||||
"examples/**",
|
||||
"_posts/**",
|
||||
"HISTORY.md",
|
||||
"docs/benchmarks*md",
|
||||
"docs/ctags.md",
|
||||
"docs/unified-diffs.md",
|
||||
"docs/leaderboards/index.md",
|
||||
"assets/**",
|
||||
]
|
2
setup.py
2
setup.py
|
@ -6,7 +6,7 @@ with open("requirements.txt") as f:
|
|||
requirements = f.read().splitlines()
|
||||
|
||||
from aider import __version__
|
||||
from aider.help import exclude_website_pats
|
||||
from aider.help_pats import exclude_website_pats
|
||||
|
||||
with open("README.md", "r", encoding="utf-8") as f:
|
||||
long_description = f.read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue