torchgeo/pyproject.toml

89 строки
1.7 KiB
TOML
Исходник Постоянная ссылка Обычный вид История

[build-system]
requires = [
2021-09-14 18:42:34 +03:00
"setuptools>=30.4",
"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
2021-08-30 22:51:07 +03:00
| logo
| 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
2021-08-30 22:51:07 +03:00
exclude = "(build|data|dist|logo|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"
match_dir = "(datasets|models|samplers|torchgeo|trainers|transforms)"
2021-07-16 20:20:08 +03:00
2021-06-24 19:02:23 +03:00
[tool.pytest.ini_options]
2021-08-21 01:07:14 +03:00
# Skip slow tests by default
addopts = "-m 'not slow'"
filterwarnings = [
2021-08-21 00:38:37 +03:00
"ignore:.*Create unlinked descriptors is going to go away.*:DeprecationWarning",
# https://github.com/tensorflow/tensorboard/pull/5138
2021-08-21 00:38:37 +03:00
"ignore:.*is a deprecated alias for the builtin.*:DeprecationWarning",
]
2021-08-21 00:38:37 +03:00
markers = [
"slow: marks tests as slow",
]
2021-08-21 01:07:14 +03:00
norecursedirs = [
2021-08-25 03:47:55 +03:00
".ipynb_checkpoints",
2021-08-21 01:07:14 +03:00
"data",
"__pycache__",
]
testpaths = [
"tests",
"docs/tutorials",
]