torchgeo/pyproject.toml

85 строки
1.6 KiB
TOML
Исходник Обычный вид История

[build-system]
requires = [
"setuptools>=42",
"wheel",
]
build-backend = "setuptools.build_meta"
2021-07-04 23:52:12 +03:00
2021-05-12 04:54:53 +03:00
[tool.black]
target-version = ["py36", "py37", "py38", "py39"]
2021-07-05 01:03:27 +03:00
color = true
2021-05-12 04:54:53 +03:00
exclude = '''
/(
# TorchGeo
| data
| logs
| output
2021-05-12 04:54:53 +03:00
# Spack
| \.spack-env
2021-05-12 04:54:53 +03:00
# Python
| build
| dist
| \.cache
| \.mypy_cache
| \.pytest_cache
| __pycache__
| .*\.egg-info
2021-05-12 04:54:53 +03:00
# Git
| \.git
| \.github
2021-05-12 04:54:53 +03:00
)/
'''
2021-07-04 23:52:12 +03:00
2021-07-05 01:03:27 +03:00
[tool.isort]
profile = "black"
known_first_party = ["docs", "tests", "torchgeo"]
extend_skip = [".spack-env/", "data", "logs", "output"]
2021-07-05 01:03:27 +03:00
skip_gitignore = true
color_output = true
2021-07-04 23:52:12 +03:00
[tool.mypy]
ignore_missing_imports = true
show_error_codes = true
exclude = "(build|data|dist|logs|output)/"
2021-07-04 23:52:12 +03:00
# Strict
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
2021-07-16 20:20:08 +03:00
[tool.pydocstyle]
convention = "google"
2021-07-19 18:10:29 +03:00
match_dir = "(datasets|samplers|torchgeo|trainers|transforms)"
2021-07-16 20:20:08 +03:00
2021-06-24 19:02:23 +03:00
[tool.pytest.ini_options]
norecursedirs = [
"*.egg*",
".*",
"build",
"data",
"dist",
"docs",
"logs",
"output",
2021-06-24 19:02:23 +03:00
"__pycache__",
]
filterwarnings = [
'ignore:.*Create unlinked descriptors is going to go away.*:DeprecationWarning',
# https://github.com/tensorflow/tensorboard/pull/5138
'ignore:.*is a deprecated alias for the builtin.*:DeprecationWarning',
]