Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

1.6 KB
Raw Blame
repos:
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: 'v0.7.4'
    hooks:
      - id: ruff
        args: [--fix, --exit-non-zero-on-fix, --show-fixes]
        exclude: ^(docs/|examples/usecases/|examples/custom_client_usage\.py)  # Ignore files under docs and examples/usecases
      - id: ruff-format
        exclude: ^(docs/|examples/usecases/)  # Ignore files under docs and examples/usecases

  - repo: local
    hooks:
      - id: mypy
        name: Check mypy
        entry: uv run mypy --namespace-packages -p camel -p test -p apps
        language: system
        types: [python]
        pass_filenames: false
        require_serial: true
        exclude: ^(docs/|examples/usecases/)  # Ignore files under docs and examples/usecases

  - repo: local
    hooks:
    - id: check-license
      name: Check License
      entry: python licenses/update_license.py . licenses/license_template.txt
      language: system
      types: [python]
      exclude: ^(docs/|examples/usecases/)  # Ignore files under docs and examples/usecases

  - repo: https://github.com/codespell-project/codespell
    # Configuration for codespell is in pyproject.toml
    rev: v2.4.1
    hooks:
    - id: codespell
      exclude: ^docs/  # Ignore all docs
      additional_dependencies:
      - tomli  # for python_version < '3.11'
  - repo: https://github.com/gitleaks/gitleaks
    rev: v8.16.3
    hooks:
      - id: gitleaks
        exclude: ^docs/
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
    hooks:
      - id: end-of-file-fixer
        exclude: ^docs/
      - id: trailing-whitespace
        exclude: ^docs/