From c758d2b9c49055a9639ff7f5a0ade6ef6f2e65ac Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 30 Aug 2024 14:29:18 -0700 Subject: [PATCH] refactor: reorganize important_files list into logical groupings --- aider/special.py | 142 ++++++++++++++++------------------------------- 1 file changed, 48 insertions(+), 94 deletions(-) diff --git a/aider/special.py b/aider/special.py index c48e724d4..216cf2b4a 100644 --- a/aider/special.py +++ b/aider/special.py @@ -10,102 +10,56 @@ def filter_important_files(file_paths): """ important_files = [ # Version Control - ".gitignore", - ".gitattributes", - # Package Management and Dependencies - "requirements.txt", - "Pipfile", - "pyproject.toml", - "package.json", - "package-lock.json", - "yarn.lock", - "Gemfile", - "Gemfile.lock", - "composer.json", - "composer.lock", - "pom.xml", - "build.gradle", - "go.mod", - "go.sum", - # Project Configuration - ".editorconfig", - ".eslintrc", - ".pylintrc", - "tsconfig.json", - # Build and Compilation - "Makefile", - "webpack.config.js", - "gulpfile.js", - # CI/CD - ".travis.yml", - ".gitlab-ci.yml", - "Jenkinsfile", - # Docker - "Dockerfile", - "docker-compose.yml", - # Environment Variables - ".env", - ".env.example", - # Deployment - "Procfile", - "vercel.json", - "netlify.toml", - "app.yaml", + ".gitignore", ".gitattributes", # Documentation - "README.md", - "CONTRIBUTING.md", - "LICENSE", - "CHANGELOG.md", - # Language-specific - "setup.py", - "__init__.py", - "Rakefile", - ".babelrc", - ".npmrc", - ".htaccess", - # Framework-specific - "manage.py", - "settings.py", - "routes.rb", - # Testing - "pytest.ini", - "phpunit.xml", - "karma.conf.js", - # Security - ".npmrc", - ".pypirc", - # New entries - "Cargo.toml", - "Cargo.lock", - "build.sbt", - "stack.yaml", - "package.yaml", - "mix.exs", + "README.md", "CONTRIBUTING.md", "LICENSE", "CHANGELOG.md", "SECURITY.md", "CODEOWNERS", + # Package Management and Dependencies + "requirements.txt", "Pipfile", "pyproject.toml", "setup.py", + "package.json", "package-lock.json", "yarn.lock", "npm-shrinkwrap.json", + "Gemfile", "Gemfile.lock", + "composer.json", "composer.lock", + "pom.xml", "build.gradle", "build.sbt", + "go.mod", "go.sum", + "Cargo.toml", "Cargo.lock", + "mix.exs", "rebar.config", "project.clj", - ".prettierrc", - ".stylelintrc", - "tslint.json", - "babel.config.js", - "jest.config.js", - "cypress.json", - "serverless.yml", - "firebase.json", - "now.json", - "docker-compose.override.yml", - "schema.sql", - "next.config.js", - "nuxt.config.js", - "vue.config.js", - "angular.json", - "swagger.yaml", - "swagger.json", - "openapi.yaml", - "openapi.json", - ".flake8", - ".rubocop.yml", - ".scalafmt.conf", - "SECURITY.md", - "CODEOWNERS", + # Configuration and Settings + ".env", ".env.example", ".editorconfig", + "tsconfig.json", "jsconfig.json", + ".babelrc", "babel.config.js", + ".eslintrc", ".eslintignore", + ".prettierrc", ".stylelintrc", + "tslint.json", ".pylintrc", ".flake8", ".rubocop.yml", ".scalafmt.conf", + # Build and Compilation + "Makefile", "CMakeLists.txt", + "webpack.config.js", "rollup.config.js", "parcel.config.js", + "gulpfile.js", "Gruntfile.js", + # Testing + "pytest.ini", "phpunit.xml", "karma.conf.js", "jest.config.js", "cypress.json", + # CI/CD + ".travis.yml", ".gitlab-ci.yml", "Jenkinsfile", "azure-pipelines.yml", "bitbucket-pipelines.yml", + # Docker and Containers + "Dockerfile", "docker-compose.yml", "docker-compose.override.yml", + # Cloud and Serverless + "serverless.yml", "firebase.json", "now.json", "netlify.toml", "vercel.json", "app.yaml", + # Database + "schema.sql", "liquibase.properties", "flyway.conf", + # Framework-specific + "manage.py", "settings.py", # Django + "config/routes.rb", "Rakefile", # Ruby on Rails + "next.config.js", "nuxt.config.js", # Next.js, Nuxt.js + "vue.config.js", "angular.json", # Vue.js, Angular + "gatsby-config.js", "gridsome.config.js", # Gatsby, Gridsome + # API Documentation + "swagger.yaml", "swagger.json", "openapi.yaml", "openapi.json", + # Language-specific + "__init__.py", # Python + "stack.yaml", "package.yaml", # Haskell + ".htaccess", # Apache + # IDE and Editor + ".vscode/settings.json", ".idea/workspace.xml", + # Misc + "CODEOWNERS", ".npmrc", ".yarnrc", ".pypirc", ] def is_important(file_path):