-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (127 loc) · 3.82 KB
/
pyproject.toml
File metadata and controls
144 lines (127 loc) · 3.82 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
[project]
name = "ikpykit"
dynamic = ["version"]
description = "Isolation Kernel Toolkit in Python."
readme = "README.md"
authors = [
{ name = "Xin Han", email = "xhan197@outlook.com" },
{ name = "Yixiao Ma", email = "mayx@lamda.nju.edu.cn" },
{ name = "Ye Zhu", email = "ye.zhu@ieee.org" },
{ name = "Kaiming Ting", email = "tingkm@nju.edu.cn" },
]
classifiers = [
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: BSD License",
]
keywords = [
"data-science",
"machine-learning",
"data-mining",
"anomaly detection",
"scikit-learn",
"cluster",
"graph embedding",
"isolation kernel",
]
dependencies = [
"numba>=0.60.0",
"numpy>=2.0.2",
"pandas>=2.3.3",
"scikit-learn>=1.6.1",
"tqdm>=4.67.1",
]
requires-python = ">=3.9"
[project.license]
file = "LICENSE"
[project.urls]
Homepage = "https://isolationkernel.github.io/ikpykit/"
Repository = "https://github.com/IsolationKernel/ikpykit"
Documentation = "https://isolationkernel.github.io/ikpykit/"
"Release Notes" = "https://isolationkernel.github.io/ikpykit/latest/releases/releases"
[build-system]
requires = ["hatchling", "uv-dynamic-versioning>=0.7.0"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.hooks.version]
path = "ikpykit/_version.py"
[tool.uv-dynamic-versioning]
vcs = "git"
style = "pep440"
bump = true
fallback-version = "0.0.0"
[tool.pytest.ini_options]
asyncio_mode = "auto"
# filterwarnings = ["error::DeprecationWarning"]
filterwarnings = [
# Suppress OAuth in-memory token storage warnings in tests
# Tests intentionally use ephemeral storage; this warning is for end users
"ignore:Using in-memory token storage:UserWarning",
]
timeout = 30
[tool.uv]
default-groups = ["dev", "lint", "docs"]
[dependency-groups]
dev = [
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-cov>=7.0.0",
"pytest-timeout>=2.4.0",
]
docs = [
"black==25.11.0",
"jupyter-contrib-nbextensions==0.7.0",
"matplotlib>=3.9.0",
"mike==2.1.4",
"mkdocs==1.6.1",
"mkdocs-jupyter==0.26.1",
"mkdocstrings==0.30.1",
"mkdocstrings-python==1.18.2",
"notebook==6.4.12",
]
lint = ["black==25.11.0", "pre-commit>=4.3.0", "ruff>=0.14.5"]
[tool.black]
line-length = 88
target-version = ["py39"]
[tool.ruff.lint]
fixable = ["ALL"]
ignore = [
"COM812",
"PLR0913", # Too many arguments, sometimes necessary
"SIM102", # Dont require combining if statements
]
extend-select = [
"B", # flake8-bugbear: Catches actual bugs like mutable default arguments
"C4", # flake8-comprehensions: More efficient/readable comprehensions
"I", # flake8-builtins: Catches builtins that are not explicitly imported
"PIE", # flake8-pie: More idiomatic Python code
"RUF", # Ruff-specific: Modern best practices unique to Ruff
"SIM", # flake8-simplify: Simplifies verbose code patterns
"UP", # flake8-unused-imports: Catches unused imports
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "I001", "RUF013"]
# allow imports not at the top of the file
"ikpykit/__init__.py" = ["E402"]
"!ikpykit/**.py" = [
# Only enforce extended ruff rules for code in ikpykit/
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PIE", # flake8-pie
"RUF", # Ruff-specific
"SIM", # flake8-simplify
]
[tool.codespell]
ignore-words-list = "asend,shttp,te"