-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (91 loc) · 2.37 KB
/
pyproject.toml
File metadata and controls
105 lines (91 loc) · 2.37 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
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["daindex"]
[project]
name = "daindex"
authors = [
{ name = "Harrison Wilde", email = "h.wilde@ucl.ac.uk" },
{ name = "Honghan Wu", email = "honghan.wu@gmail.com" },
]
version = "0.10.0"
description = "Deterioration Allocation Index Framework"
license = "MIT"
readme = "README.md"
keywords = [
"evaluation",
"fairness",
"machine learning",
"data science",
"bias",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
requires-python = ">=3.10"
dependencies = [
"joblib>=1.5.1",
"matplotlib>=3.10.3",
"numpy>=2.2.6",
"pandas>=2.3.1",
"scikit-learn>=1.7.1",
"seaborn>=0.13.2",
"tqdm>=4.67.1",
]
[dependency-groups]
dev = [
"pre-commit>=4.2.0",
"pytest>=8.4.1",
"pytest-cov>=6.2.1",
"pytest-mock>=3.14.1",
"ruff>=0.12.5",
"tox>=4.28.2",
"tox-uv>=1.26.2",
]
tutorials = ["aif360>=0.6.1", "jupyter>=1.1.1", "notebook>=7.4.4"]
[tool.uv]
package = true
default-groups = ["dev", "tutorials"]
[project.urls]
repository = "https://github.com/knowlab/daindex"
issues = "https://github.com/knowlab/daindex/issues"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear: Likely bugs
"C", # flake8-comprehensions and mccabe complexity
"E", # pycodestyle: Errors (default)
"F", # pyflakes: Linter
"I", # isort
"N", # pep8-naming: Naming conventions
"W", # pycodestyle: Warnings (default)
]
ignore = [
"D100", # Warns about missing module-level docstrings
"S101", # Warns about assert being removed when compiled
"B006", # Do not use mutable data structures for argument defaults
]
[tool.ruff.lint.isort]
known-first-party = ["daindex"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "E402", "D104"]
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.tox]
envlist = ["py310", "py311", "py312", "py313"]
[tool.tox.env_run_base]
runner = "uv-venv-lock-runner"
description = "Run test under {base_python}"
commands = [["pytest", "-v"]]
[tool.coverage.run]
branch = true
source = ["."]
omit = ["tests/*", "tutorials/*"]