refactor: reorganize important_files list into logical groupings

This commit is contained in:
Paul Gauthier (aider) 2024-08-30 14:29:18 -07:00
parent e6b3f64823
commit c758d2b9c4

View file

@ -10,102 +10,56 @@ def filter_important_files(file_paths):
""" """
important_files = [ important_files = [
# Version Control # Version Control
".gitignore", ".gitignore", ".gitattributes",
".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",
# Documentation # Documentation
"README.md", "README.md", "CONTRIBUTING.md", "LICENSE", "CHANGELOG.md", "SECURITY.md", "CODEOWNERS",
"CONTRIBUTING.md", # Package Management and Dependencies
"LICENSE", "requirements.txt", "Pipfile", "pyproject.toml", "setup.py",
"CHANGELOG.md", "package.json", "package-lock.json", "yarn.lock", "npm-shrinkwrap.json",
# Language-specific "Gemfile", "Gemfile.lock",
"setup.py", "composer.json", "composer.lock",
"__init__.py", "pom.xml", "build.gradle", "build.sbt",
"Rakefile", "go.mod", "go.sum",
".babelrc", "Cargo.toml", "Cargo.lock",
".npmrc", "mix.exs", "rebar.config",
".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",
"project.clj", "project.clj",
".prettierrc", # Configuration and Settings
".stylelintrc", ".env", ".env.example", ".editorconfig",
"tslint.json", "tsconfig.json", "jsconfig.json",
"babel.config.js", ".babelrc", "babel.config.js",
"jest.config.js", ".eslintrc", ".eslintignore",
"cypress.json", ".prettierrc", ".stylelintrc",
"serverless.yml", "tslint.json", ".pylintrc", ".flake8", ".rubocop.yml", ".scalafmt.conf",
"firebase.json", # Build and Compilation
"now.json", "Makefile", "CMakeLists.txt",
"docker-compose.override.yml", "webpack.config.js", "rollup.config.js", "parcel.config.js",
"schema.sql", "gulpfile.js", "Gruntfile.js",
"next.config.js", # Testing
"nuxt.config.js", "pytest.ini", "phpunit.xml", "karma.conf.js", "jest.config.js", "cypress.json",
"vue.config.js", # CI/CD
"angular.json", ".travis.yml", ".gitlab-ci.yml", "Jenkinsfile", "azure-pipelines.yml", "bitbucket-pipelines.yml",
"swagger.yaml", # Docker and Containers
"swagger.json", "Dockerfile", "docker-compose.yml", "docker-compose.override.yml",
"openapi.yaml", # Cloud and Serverless
"openapi.json", "serverless.yml", "firebase.json", "now.json", "netlify.toml", "vercel.json", "app.yaml",
".flake8", # Database
".rubocop.yml", "schema.sql", "liquibase.properties", "flyway.conf",
".scalafmt.conf", # Framework-specific
"SECURITY.md", "manage.py", "settings.py", # Django
"CODEOWNERS", "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): def is_important(file_path):