training_extensions icon indicating copy to clipboard operation
training_extensions copied to clipboard

Enable mypy pre-commit hook for geti-tune backend

Open warrkan opened this issue 1 year ago • 1 comments

Currently, pre-commit hooks only check otx library. In addition mypy check should be added for backend part as well

warrkan avatar Aug 29 '25 08:08 warrkan

Given that mypy looks for the closest pyproject.toml based on where it's run, I think you should install two pre-commit hooks as follows:

repos:
  - repo: https://github.com/pre-commit/mirrors-mypy
    rev: v1.17.1
    hooks:
      - id: mypy
        name: mypy (lib)
        args: [lib]
        additional_dependencies: []
      - id: mypy
        name: mypy (backend)
        args: [backend]
        additional_dependencies: []

leoll2 avatar Sep 02 '25 06:09 leoll2