Agents-MCP-Hackathon/TDAgentTools
15
1repos:2 - repo: https://github.com/pre-commit/pre-commit-hooks3 rev: v2.4.04 hooks:5 - id: requirements-txt-fixer6 files: requirements.txt|requirements-dev.txt|requirements-test.txt7 - id: trailing-whitespace8 exclude: |9 (?x)^(10 notebooks/11 )12 args: [--markdown-linebreak-ext=md]13 - id: end-of-file-fixer14 exclude: |15 (?x)^(16 notebooks/17 )18 - id: check-yaml19 - id: check-symlinks20 - id: check-toml21 - id: check-added-large-files22 args: ["--maxkb=1000"]23 - repo: https://github.com/asottile/add-trailing-comma24 rev: v3.1.025 hooks:26 - id: add-trailing-comma27 - repo: https://github.com/psf/black28 rev: 23.1.029 hooks:30 - id: black31 exclude: |32 (?x)^(33 notebooks/34 )35 - repo: https://github.com/pycqa/isort36 rev: "5.12.0"37 hooks:38 - id: isort39 exclude: |40 (?x)^(41 notebooks/42 )43 - repo: https://github.com/astral-sh/ruff-pre-commit44 rev: v0.9.745 hooks:46 - id: ruff # linter47 exclude: |48 (?x)^(49 scripts/|50 notebooks/51 )52 # - id: ruff-format53 - repo: local54 hooks:55 - id: update-req56 name: Update requirements.txt57 stages: [pre-commit]58 language: system59 entry: uv60 files: uv.lock|requirements.txt61 pass_filenames: false62 args:63 [64 "export",65 "--format",66 "requirements-txt",67 "--no-hashes",68 "--no-dev",69 "-o",70 "requirements.txt",71 ]72 - id: update-dev-req73 name: Update requirements-dev.txt74 stages: [pre-commit]75 language: system76 entry: uv77 files: uv.lock|requirements-dev.txt78 pass_filenames: false79 args:80 [81 "export",82 "--format",83 "requirements-txt",84 "--no-hashes",85 "--group",86 "dev",87 "--group",88 "test",89 "-o",90 "requirements-dev.txt",91 ]92 - id: mypy93 name: Running mypy94 stages: [commit]95 language: system96 entry: uv run mypy97 args: [--install-types, --non-interactive]98 types: [python]99 exclude: |100 (?x)^(101 scripts/|102 notebooks/103 )104 105 # - id: pytest106 # name: pytest107 # stages: [commit]108 # language: system109 # entry: poetry run pytest110 # types: [python]111 112 # - id: pytest-cov113 # name: pytest114 # stages: [push]115 # language: system116 # entry: poetry run pytest --cov --cov-fail-under=100117 # types: [python]118 # pass_filenames: false119 