training_extensions
training_extensions copied to clipboard
Enable mypy pre-commit hook for geti-tune backend
Currently, pre-commit hooks only check otx library. In addition mypy check should be added for backend part as well
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: []