-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
executable file
·81 lines (71 loc) · 1.85 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
[project]
name = "leakpro"
version = "0.1.0"
description = "A package for privacy risk analysis"
authors = [{name = "LeakPro team", email = "[email protected]"}]
readme = "README.md"
license = {file="LICENSE"}
requires-python = '>=3.8,<3.13'
dependencies = [
"numpy",
"pandas",
"scipy",
"matplotlib",
"seaborn",
"dotmap",
"jinja2",
"tqdm",
"joblib",
"pyyaml",
"scikit-learn",
]
[project.optional-dependencies]
mia = ["torch", "torchvision", "optuna"]
synthetic = ["numba", "pydantic", "transformers", "sentence-transformers"]
federated = ["torch", "torchvision", "torchmetrics", "pytorch-ignite", "optuna"]
dev = [
"pytest",
"pytest-cov",
"pytest-mock",
"coverage-badge",
"ruff",
"torch", # from mia & federated
"torchvision", # from mia & federated
"torchmetrics", # from federated
"numba", # from synthetic
"pydantic", # from synthetic
"transformers", # from synthetic
"sentence-transformers", # from synthetic
"pytorch-ignite", # from federated
"optuna", # federated and mia
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["leakpro*"]
[tool.ruff]
line-length = 130
target-version = "py39"
select = [
"ANN", "ARG", "B", "C4", "C90", "D", "DTZ", "E", "ERA", "F", "I", "N", "PD", "PGH", "PLC",
"PLE", "PLR", "PLW", "PT", "Q", "RET", "S", "SIM", "T20", "TID", "W",
]
exclude = [
".venv",
"./tests",
"./leakpro/tests",
"./examples",
]
lint.ignore = [
"D401", # non-imperative-mood
"PD901", # Avoid using df variable name as pd.Dataframe
"PD011", # pandas-use-of-dot-values
"PLR0913", # too-many-arguments in function
"S101", # Using assert
"PLR2004", # magic-value-comparison
"D107", # Missing docstring in `__init__`
"PLW2901", # redefined-loop-name
"D202", # No blank lines allowed after function docstring
"F811" # redefinition of function
]