-
Notifications
You must be signed in to change notification settings - Fork 33
/
pyproject.toml
88 lines (69 loc) · 1.69 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
[project]
name = "sage-importance"
version = "0.0.6"
description = "For calculating global feature importance using Shapley values."
readme = "README.md"
license = {text = "MIT License"}
authors = [
{name = "Ian Covert", email = "ian.covert@gmail.com"},
]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.8"
dependencies = [
"joblib",
"matplotlib",
"numpy",
"scipy",
"tqdm",
]
[project.optional-dependencies]
dev=[
"build",
"pre-commit",
"ruff"
]
notebook=[
"catboost",
"ipykernel",
"gender-guesser",
"pandas",
"tensorflow",
"torch",
"torchvision",
"scikit-learn",
"xgboost",
]
[project.urls]
Repository = "https://github.com/iancovert/sage/"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["sage"]
[tool.ruff]
include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]
[tool.ruff.lint]
# See rules: https://beta.ruff.rs/docs/rules/
select = [
"I", # isort
"N", # pep8-naming
"NPY", # numpy
"RUF", # ruff-specific rules
]
ignore = [
"N803", # argument name should be lowercase; fine for matrices
"N806", # variable name should be lowercase; fine for matrices
"NPY002", # allow calls to np.random; could cause slightly different results
]
preview = true
[tool.ruff.format]
preview = true
[tool.ruff.lint.isort]
known-first-party = ["sage"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]