-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (134 loc) · 2.92 KB
/
pyproject.toml
File metadata and controls
149 lines (134 loc) · 2.92 KB
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "isic-challenge-scoring"
description = "Submission scoring for the ISIC Challenge."
readme = "README.md"
requires-python = ">=3.13"
license = "Apache-2.0"
license-files = ["LICENSE"]
maintainers = [{ name = "ISIC Archive", email = "support@isic-archive.com" }]
keywords = [
"challenge",
"isic",
"isic-challenge",
"scoring"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"click",
"click-pathlib",
"numpy",
"pandas>=1.1",
"pillow>=7",
"rdp",
"scipy",
"scikit-learn",
"zipfile-deflate64",
]
dynamic = ["version"]
[project.urls]
Repository = "https://github.com/ImageMarkup/isic-challenge-scoring"
"Bug Reports" = "https://github.com/ImageMarkup/isic-challenge-scoring/issues"
[project.scripts]
isic-challenge-scoring = "isic_challenge_scoring.__main__:cli"
[dependency-groups]
dev = [
"tox",
"tox-uv",
]
lint = [
"flake8",
"flake8-black",
"flake8-bugbear",
"flake8-docstrings",
"flake8-isort",
"flake8-quotes",
"pep8-naming",
]
format = [
"black",
"isort",
]
type = [
"mypy",
"pandas-stubs",
"microsoft-python-type-stubs",
]
test = [
"pytest",
"pytest-cov",
]
[tool.hatch.build]
packages = [
"isic_challenge_scoring",
]
[tool.hatch.version]
source = "vcs"
[tool.uv.sources]
microsoft-python-type-stubs = { git = "https://github.com/microsoft/python-type-stubs.git" }
[tool.black]
line-length = 100
skip-string-normalization = true
target-version = ["py313"]
[tool.isort]
profile = "black"
line_length = 100
# Sort by name, don't cluster "from" vs "import"
force_sort_within_sections = true
# Combines "as" imports on the same line
combine_as_imports = true
[tool.mypy]
files = [
"isic_challenge_scoring",
"tests",
]
check_untyped_defs = true
ignore_missing_imports = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"rdp",
"zipfile_deflate64",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = [
# Test utilies should be imported absolutely from the pythonpath,
# so use the Pytest-reccomended "importlib" mode
"--import-mode=importlib",
"--strict-config",
"--strict-markers",
"--showlocals",
"--verbose",
"--cov",
]
filterwarnings = [
"error",
# The "rdp" package is unmaintained and calls "numpy.cross" in a harmless but deprecrated way
"ignore:Arrays of 2-dimensional vectors are deprecated:DeprecationWarning:rdp",
]
testpaths = [
"tests",
]
[tool.coverage.run]
source_pkgs = [
"isic_challenge_scoring",
]
[tool.coverage.paths]
source = [
"isic_challenge_scoring/",
".tox/**/site-packages/isic_challenge_scoring/",
]
[tool.coverage.report]
skip_empty = true