torchgeo/.pre-commit-config.yaml

33 строки
988 B
YAML

repos:
- repo: https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort
additional_dependencies: ["colorama>=0.4.3"]
- repo: https://github.com/psf/black
rev: 21.4b0
hooks:
- id: black
args: [--skip-magic-trailing-comma]
- repo: https://gitlab.com/pycqa/flake8.git
rev: 3.8.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/pydocstyle
rev: 6.1.0
hooks:
- id: pydocstyle
exclude: (tests|docs|experiments)
additional_dependencies: ["toml"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
hooks:
- id: mypy
args: [--strict, --ignore-missing-imports, --show-error-codes]
additional_dependencies: [torch>=1.7, pytorch-lightning>=1.3, pytest>=6, omegaconf>=2.1, kornia>=0.6]
exclude: (build|data|dist|logo|logs|output)/