-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
151 lines (127 loc) · 4.35 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[build-system]
requires = [
"hatchling",
"hatch-vcs",
"hatch-fancy-pypi-readme>=23.2.0",
"hatch-requirements-txt",
]
build-backend = "hatchling.build"
[project]
name = "eurocropsml"
authors = [
{ name = "Joana Reuss", email = "[email protected]" },
{ name = "Jan Macdonald", email = "[email protected]" },
]
maintainers = [
{ name = "Joana Reuss", email = "[email protected]" },
{ name = "Jan Macdonald", email = "[email protected]" },
]
license = "MIT"
description = "EuroCropsML is a ready-to-use benchmark dataset for few-shot crop type classification using Sentinel-2 imagery."
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Typing :: Typed",
]
dynamic = ["version", "readme", "dependencies", "optional-dependencies"]
[project.urls]
Documentation = "https://eurocropsml.readthedocs.io/en/latest/"
Changelog = "https://github.com/dida-do/eurocropsml/blob/main/CHANGELOG.md"
GitHub = "https://github.com/dida-do/eurocropsml"
[project.scripts]
eurocropsml-cli = "eurocropsml.cli:cli"
[tool.hatch.version]
source = "vcs"
raw-options = { local_scheme = "no-local-version" }
[tool.hatch.metadata.hooks.requirements_txt]
files = ["requirements/requirements.in"]
[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies]
tests = ["requirements/requirements-tests.in"]
docs = ["requirements/requirements-docs.in"]
dev = [
"requirements/requirements-tests.in",
"requirements/requirements-docs.in",
"requirements/requirements-dev.in",
]
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.md"
start-after = "<!-- teaser-begin -->"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# make relative image links absolute
pattern = '!\[(.+?)\]\(((?!https?://)\S+?)\)'
replacement = ''
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# make relative non-image links absolute
pattern = '(?<!!)\[(.+?)\]\(((?!https?://)\S+?)\)'
replacement = '[\g<1>](https://github.com/dida-do/eurocropsml/tree/main/\g<2>)'
[tool.black]
target-version = ['py310']
line-length = 100
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "D", "A", "N", "B", "SIM", "C4", "TID", "NPY201"]
ignore = [
"E741", # Ambiguous variable name
"D213", # Multi-line docstring summary should start at the second line
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D202", # Blank lines after docstring
"D203", # 1 blank line required before class docstring
"D401", # First line should be in imperative mood; try rephrasing
"D406", # Section name should end with a newline
"D407", # Missing dashed underline after section
"D106", # Missing docstring in public nested class
"B006", # Do not use mutable data structures for argument defaults
"B008", # Do not perform function calls in argument defaults
"B905", # `zip()` without an explicit `strict=` parameter
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"test_*.py" = ["D", "E402"]
"__init__.py" = ["D"]
"notebooks/*.py" = [
"D", # Make docstrings entirely optional
"E402", # Module level import not at top of file
"SIM115", # Use context handler for opening files
"I", # Allow unordered imports
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.isort]
profile = "black"
[tool.mypy]
plugins = ["pydantic.mypy"]
show_error_codes = true
ignore_missing_imports = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
[tool.pytest.ini_options]
addopts = ["-ra", "--strict-markers", "--strict-config"]
xfail_strict = true
testpaths = "tests"
filterwarnings = ["once::Warning"]
[tool.coverage.run]
parallel = true
branch = true
source_pkgs = ["eurocropsml"]
[tool.coverage.paths]
source = ["eurocropsml", ".tox/py*/**/site-packages"]
[tool.coverage.report]
show_missing = true
skip_covered = true
[tool.interrogate]
omit-covered-files = true
verbose = 2
fail-under = 100
whitelist-regex = ["test_.*"]
[tool.check-wheel-contents]
toplevel = ["eurocropsml"]