зеркало из https://github.com/microsoft/torchgeo.git
Родитель
a82d3f47b4
Коммит
b48b5cd2ad
|
@ -0,0 +1,31 @@
|
|||
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
|
||||
|
||||
- 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)
|
||||
additional_dependencies: ["toml"]
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v0.910
|
||||
hooks:
|
||||
- id: mypy
|
||||
args: [--strict, --ignore-missing-imports]
|
||||
additional_dependencies: [torch>=1.7, pytorch-lightning>=1.3, pytest>=6, omegaconf>=2.1]
|
||||
exclude: (build|data|dist|logo|logs|output)/
|
15
Makefile
15
Makefile
|
@ -1,15 +0,0 @@
|
|||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
.PHONY: tests docs
|
||||
|
||||
tests:
|
||||
black --check .
|
||||
isort . --check --diff
|
||||
flake8 .
|
||||
pydocstyle .
|
||||
mypy .
|
||||
pytest --cov=. --cov-report=term-missing
|
||||
|
||||
docs:
|
||||
$(MAKE) -C docs html
|
Загрузка…
Ссылка в новой задаче