-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
106 lines (93 loc) · 2.75 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[build-system]
requires = ["setuptools"]
[project]
name = "chinese_whispers"
authors = [{ name = "Dmitry Ustalov" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
"Typing :: Typed",
]
license = { text = "MIT" }
description = "An implementation of the Chinese Whispers clustering algorithm."
keywords = [
"graph clustering",
"unsupervised learning",
"chinese whispers",
"cluster analysis",
]
requires-python = "~=3.8"
dependencies = ["networkx >= 2.1,< 4.0"]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"build",
"matplotlib",
"mypy",
"nbqa",
"notebook",
"pytest",
"ruff",
"twine",
"types-networkx",
]
docs = ["mkdocs-material", "mkdocstrings-python"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/nlpub/chinese-whispers"
Documentation = "https://chinese-whispers.readthedocs.io"
Download = "https://pypi.org/project/chinese-whispers/#files"
Repository = "https://github.com/nlpub/chinese-whispers"
[project.scripts]
chinese-whispers = "chinese_whispers.__main__:main"
[tool.setuptools]
zip-safe = true
[tool.setuptools.packages.find]
include = ["chinese_whispers*"]
[tool.setuptools.dynamic]
version = { attr = "chinese_whispers.__version__" }
[tool.mypy]
ignore_missing_imports = true
strict = true
[tool.nbqa.addopts]
mypy = ["--disable-error-code=attr-defined"]
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D203", # one-blank-line-before-class
"D212", # multi-line-summary-first-line
"D406", # new-line-after-section-name
"D407", # dashed-underline-after-section
"PLR0913", # too-many-arguments
"S311", # suspicious-non-cryptographic-random-usage
]
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = [
"D", # pydocstyle
"E402", # module-import-not-at-top-of-file
"T201", # print
]
"test_*.py" = [
"D", # pydocstyle
"PLR2004", # magic-value-comparison
"S101", # assert
]