babyagi_archive/.pre-commit-config.yaml
Bujie Xu 3e1b9f32e8 🆕 chore(.pre-commit-config.yaml): add pre-commit hooks for trailing whitespace, end-of-file, yaml, large files, merge conflicts, debug statements, requirements.txt, black, isort, and flake8. Set max line length to 140 for flake8.
🎨 style(babyagi.py): format code with black
🔥 chore(babyagi.py): remove unused imports and variables
✨ feat(babyagi.py): add support for GPT-4 model
🐛 fix(babyagi.py): fix formatting and typos in print statements
🚀 perf(babyagi.py): optimize context_agent function for faster query results
👌 refactor(babyagi.py): refactor task_creation_agent function for readability
👌 refactor(babyagi.py): refactor prioritization_agent function for readability
👌 refactor(babyagi.py): refactor execution_agent function for readability
👌 refactor(babyagi.py): refactor context_agent function for readability
📝 docs(babyagi.py): add comments to explain code functionality

🎨 style(babyagi.py): fix indentation and add line breaks for readability

🔧 chore(requirements.txt): add pre-commit dependency to ensure code quality and consistency
2023-04-07 13:00:08 +09:00

28 lines
641 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: debug-statements
- id: requirements-txt-fixer
files: requirements.txt
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
args: ["--max-line-length=140"]