-
Notifications
You must be signed in to change notification settings - Fork 408
/
Copy pathpyproject.toml
88 lines (79 loc) · 1.73 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[build-system]
requires = [
"setuptools>=42",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.black]
target-version = ["py36", "py37", "py38", "py39"]
color = true
exclude = '''
/(
# TorchGeo
| data
| logo
| logs
| output
# Spack
| \.spack-env
# Python
| build
| dist
| \.cache
| \.mypy_cache
| \.pytest_cache
| __pycache__
| .*\.egg-info
# Git
| \.git
| \.github
)/
'''
[tool.isort]
profile = "black"
known_first_party = ["docs", "tests", "torchgeo"]
extend_skip = [".spack-env/", "data", "logs", "output"]
skip_gitignore = true
color_output = true
[tool.mypy]
ignore_missing_imports = true
show_error_codes = true
exclude = "(build|data|dist|logo|logs|output)/"
# 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
[tool.pydocstyle]
convention = "google"
match_dir = "(datasets|samplers|torchgeo|trainers|transforms)"
[tool.pytest.ini_options]
# 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",
]
markers = [
"slow: marks tests as slow",
]
norecursedirs = [
".ipynb_checkpoints",
"data",
"__pycache__",
]
testpaths = [
"tests",
"docs/tutorials",
]