-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
161 lines (144 loc) · 4.73 KB
/
Copy pathpyproject.toml
File metadata and controls
161 lines (144 loc) · 4.73 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[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.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: BSD License",
]
keywords = [
"data-science",
"machine-learning",
"data-mining",
"anomaly detection",
"scikit-learn",
"cluster",
"graph embedding",
"isolation kernel",
]
dependencies = [
"numba>=0.63.0",
"numpy>=2.3.2",
"pandas>=2.3.3",
"scikit-learn>=1.7.2",
"tqdm>=4.67.1",
]
requires-python = ">=3.11"
[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==26.5.1",
"matplotlib>=3.9.0",
"mike==2.2.0",
"mkdocs==1.6.1",
"mkdocs-gen-files==0.6.1",
"mkdocs-git-revision-date-localized-plugin==1.5.3",
"mkdocs-jupyter==0.26.3",
"mkdocs-literate-nav==0.6.3",
"mkdocs-llmstxt==0.5.0",
# The theme was previously only reached through mkdocs-jupyter. It is a
# direct requirement of this site, and the imaging extra (cairosvg, pillow)
# is what the built-in social plugin renders cards with.
"mkdocs-material[imaging]==9.7.7",
"mkdocs-redirects==1.2.3",
"mkdocs-section-index==0.3.12",
"mkdocstrings==1.0.6",
"mkdocstrings-python==2.0.5",
"notebook==7.6.2",
]
lint = ["black==26.5.1", "pre-commit>=4.3.0", "ruff>=0.14.5"]
[tool.black]
line-length = 88
target-version = ["py311"]
[tool.ruff.lint]
fixable = ["ALL"]
ignore = [
"COM812",
"PLR0913", # Too many arguments, sometimes necessary
"SIM102", # Dont require combining if statements
]
# Selected explicitly rather than via extend-select, which layers on top of
# ruff's default set and so silently changes whenever ruff changes that default.
# The first four entries reproduce that default; the rest are this project's.
select = [
"E4", # pycodestyle: import formatting
"E7", # pycodestyle: statement-level style
"E9", # pycodestyle: syntax and IO errors
"F", # Pyflakes: unused imports, undefined names, and similar
"B", # flake8-bugbear: Catches actual bugs like mutable default arguments
"C4", # flake8-comprehensions: More efficient/readable comprehensions
"I", # isort: Enforces sorted, grouped imports
"PIE", # flake8-pie: More idiomatic Python code
"RUF", # Ruff-specific: Modern best practices unique to Ruff
"SIM", # flake8-simplify: Simplifies verbose code patterns
"UP", # pyupgrade: Rewrites code to newer Python syntax
]
[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]
# anc - local variable for "ancestors" in stream/cluster/_inode.py
# lamda - the LAMDA lab's domain (lamda.nju.edu.cn) in author emails
ignore-words-list = "anc,asend,lamda,shttp,te"