2021-05-21 06:22:30 +03:00
|
|
|
[build-system]
|
|
|
|
requires = [
|
2021-09-14 18:42:34 +03:00
|
|
|
"setuptools>=30.4",
|
2021-05-21 06:22:30 +03:00
|
|
|
"wheel",
|
|
|
|
]
|
|
|
|
build-backend = "setuptools.build_meta"
|
2021-07-04 23:52:12 +03:00
|
|
|
|
2021-05-12 04:54:53 +03:00
|
|
|
[tool.black]
|
2021-08-11 19:03:38 +03:00
|
|
|
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 = '''
|
|
|
|
/(
|
2021-07-18 02:57:18 +03:00
|
|
|
# TorchGeo
|
2021-07-08 20:44:18 +03:00
|
|
|
| data
|
2021-08-30 22:51:07 +03:00
|
|
|
| logo
|
2021-07-18 02:57:18 +03:00
|
|
|
| logs
|
|
|
|
| output
|
2021-05-12 04:54:53 +03:00
|
|
|
|
|
|
|
# Spack
|
2021-07-08 20:44:18 +03:00
|
|
|
| \.spack-env
|
2021-05-12 04:54:53 +03:00
|
|
|
|
|
|
|
# Python
|
2021-07-08 20:44:18 +03:00
|
|
|
| build
|
|
|
|
| dist
|
|
|
|
| \.cache
|
|
|
|
| \.mypy_cache
|
|
|
|
| \.pytest_cache
|
|
|
|
| __pycache__
|
|
|
|
| .*\.egg-info
|
2021-05-12 04:54:53 +03:00
|
|
|
|
|
|
|
# Git
|
2021-07-08 20:44:18 +03:00
|
|
|
| \.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"]
|
2021-07-18 02:57:18 +03:00
|
|
|
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"
|
2021-09-14 18:53:38 +03:00
|
|
|
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'"
|
2021-07-27 20:06:12 +03:00
|
|
|
filterwarnings = [
|
2021-08-21 00:38:37 +03:00
|
|
|
"ignore:.*Create unlinked descriptors is going to go away.*:DeprecationWarning",
|
2021-07-27 20:06:12 +03:00
|
|
|
# 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-07-27 20:06:12 +03:00
|
|
|
]
|
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",
|
|
|
|
]
|