-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
97 lines (84 loc) · 3.07 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
# Package ######################################################################
[build-system]
requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "xcolumns"
description = "A small library for Consistent Optimization of Label-wise Utilities in Multi-label clasifficatioN"
readme = "README.md"
requires-python = ">= 3.8"
authors = [{ name = "Marek Wydmuch, Erik Schultheis, Wojciech Kotłowski, Rohit Babbar, Krzysztof Dembczyński", email = "[email protected]" }]
license = { text = "MIT License" }
keywords = [
"machine learning",
"multi-label classification",
"performance metrics",
"label-wise utilities",
"classification metrics",
"macro-measures",
"optimization"
]
classifiers = [
"Development Status :: 4 - Beta", # change to `5 - Production/Stable` when ready
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"numpy",
"scipy",
"numba>=0.58.0",
"click",
"autograd>=1.6",
"tqdm",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/mwydmuch/xcolumns"
Repository = "https://github.com/mwydmuch/xcolumns"
Documentation = "https://github.com/mwydmuch/xcolumns"
"Bug Report" = "https://github.com/mwydmuch/xcolumns/issues"
[tool.setuptools.packages.find]
include = ["xcolumns", "xcolumns.*"]
# Linters and Test tools #######################################################
[tool.black]
safe = true
[tool.isort]
atomic = true
profile = "black"
src_paths = ["xcolumns", "tests"]
extra_standard_library = ["typing_extensions"]
indent = 4
lines_after_imports = 2
multi_line_output = 3
[tool.pyright]
include = ["xcolumns/**", "tests/**"]
exclude = ["**/__pycache__", "**/experiments"]
strict = []
typeCheckingMode = "basic"
pythonVersion = "3.8"
pythonPlatform = "All"
typeshedPath = "typeshed"
enableTypeIgnoreComments = true
# This is required as the CI pre-commit does not download the module (i.e. numpy)
# Therefore, we have to ignore missing imports
reportMissingImports = "none"
# Some modules are missing type stubs, which is an issue when running pyright locally
reportMissingTypeStubs = false
# For warning and error, will raise an error when
reportInvalidTypeVarUse = "none"
# reportUnknownMemberType = "warning" # -> raises 6035 warnings
# reportUnknownParameterType = "warning" # -> raises 1327 warnings
# reportUnknownVariableType = "warning" # -> raises 2585 warnings
# reportUnknownArgumentType = "warning" # -> raises 2104 warnings
reportGeneralTypeIssues = "none" # -> commented out raises 489 errors
# reportUntypedFunctionDecorator = "none" # -> pytest.mark.parameterize issues
reportPrivateUsage = "warning"
reportUnboundVariable = "warning"