From e6b3f64823fe3b251af3291accbae4ea3b2d3bd9 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 30 Aug 2024 14:27:51 -0700 Subject: [PATCH] style: format important_files list for improved readability --- aider/special.py | 105 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 83 insertions(+), 22 deletions(-) diff --git a/aider/special.py b/aider/special.py index f776337d7..c48e724d4 100644 --- a/aider/special.py +++ b/aider/special.py @@ -10,41 +10,102 @@ def filter_important_files(file_paths): """ important_files = [ # Version Control - ".gitignore", ".gitattributes", + ".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", + "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", + ".editorconfig", + ".eslintrc", + ".pylintrc", + "tsconfig.json", # Build and Compilation - "Makefile", "webpack.config.js", "gulpfile.js", + "Makefile", + "webpack.config.js", + "gulpfile.js", # CI/CD - ".travis.yml", ".gitlab-ci.yml", "Jenkinsfile", + ".travis.yml", + ".gitlab-ci.yml", + "Jenkinsfile", # Docker - "Dockerfile", "docker-compose.yml", + "Dockerfile", + "docker-compose.yml", # Environment Variables - ".env", ".env.example", + ".env", + ".env.example", # Deployment - "Procfile", "vercel.json", "netlify.toml", "app.yaml", + "Procfile", + "vercel.json", + "netlify.toml", + "app.yaml", # Documentation - "README.md", "CONTRIBUTING.md", "LICENSE", "CHANGELOG.md", + "README.md", + "CONTRIBUTING.md", + "LICENSE", + "CHANGELOG.md", # Language-specific - "setup.py", "__init__.py", "Rakefile", ".babelrc", ".npmrc", ".htaccess", + "setup.py", + "__init__.py", + "Rakefile", + ".babelrc", + ".npmrc", + ".htaccess", # Framework-specific - "manage.py", "settings.py", "routes.rb", + "manage.py", + "settings.py", + "routes.rb", # Testing - "pytest.ini", "phpunit.xml", "karma.conf.js", + "pytest.ini", + "phpunit.xml", + "karma.conf.js", # Security - ".npmrc", ".pypirc", + ".npmrc", + ".pypirc", # New entries - "Cargo.toml", "Cargo.lock", "build.sbt", "stack.yaml", "package.yaml", - "mix.exs", "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", + "Cargo.toml", + "Cargo.lock", + "build.sbt", + "stack.yaml", + "package.yaml", + "mix.exs", + "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", ] def is_important(file_path):