torchgeo/pyproject.toml

102 строки
2.3 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
skip_magic_trailing_comma = 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
[tool.coverage.report]
# Ignore warnings for overloads
# https://github.com/nedbat/coveragepy/issues/970#issuecomment-612602180
exclude_lines = [
"pragma: no cover",
"@overload",
]
2021-07-05 01:03:27 +03:00
[tool.isort]
profile = "black"
known_first_party = ["docs", "tests", "torchgeo", "train"]
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 = "(datamodules|datasets|losses|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 = [
"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",
"ignore:Previous behaviour produces incorrect box coordinates:UserWarning",
"ignore:The dataloader, .*, does not have many workers which may be a bottleneck:UserWarning",
"ignore:Your `.*_dataloader` has `shuffle=True`:UserWarning",
"ignore:Trying to infer the `batch_size` from an ambiguous collection:UserWarning",
]
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",
]