diff --git a/aider/help.py b/aider/help.py index f839ed5cc..5d9d6d5df 100755 --- a/aider/help.py +++ b/aider/help.py @@ -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(): diff --git a/aider/help_pats.py b/aider/help_pats.py new file mode 100644 index 000000000..6a2c20a0b --- /dev/null +++ b/aider/help_pats.py @@ -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/**", +] diff --git a/setup.py b/setup.py index 8fd34532b..60dfc95b4 100644 --- a/setup.py +++ b/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()