style: format important_files list for improved readability

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

View file

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