-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (79 loc) · 2.46 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (79 loc) · 2.46 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
[build-system]
requires = ["setuptools>=77.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "tmplot"
dynamic = ["version"]
description = "Visualization of Topic Modeling Results"
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "Maksim Terpilovskii", email = "maximtrp@gmail.com" },
]
keywords = [
"data science",
"data analytics"
]
classifiers = [
"Operating System :: OS Independent",
"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",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Text Processing :: General",
]
urls.homepage = "https://github.com/maximtrp/tmplot"
urls.documentation = "https://tmplot.readthedocs.io/"
dependencies = [
"numpy>=1.23",
"pandas>=1.5",
"scikit-learn>=1.4",
"scipy>=1.9",
"altair>=5",
"ipywidgets>=8",
"IPython>=8",
"tqdm>=4.64",
]
[project.optional-dependencies]
test = ["pytest", "coverage", "build", "twine"]
models = ["tomotopy>=0.8.0", "gensim", "bitermplus>=1.0"]
[tool.setuptools.dynamic]
version = {attr = "tmplot.__version__"}
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.ruff]
line-length = 120
target-version = "py39"
extend-exclude = ["build", "dist", "temp", "docs"]
[tool.ruff.lint]
select = [
"F", "E", "W", "B", "I", "N", "UP", "SIM", "RET", "ARG", "C4",
"PD", "NPY", "PT", "PTH", "A", "RUF", "PLC", "PLE", "PLW",
"BLE",
]
ignore = [
"E501", # the formatter's job
"PLC0415", # optional-model imports are deliberately local
# `X | None` is only a runtime type on 3.10+; the package supports 3.9
# and the annotations stay introspectable for docs tooling.
"UP007",
"UP045",
# The re-export noqa markers in __init__.py are for pyflakes/prospector,
# which ruff does not need but Codacy still runs.
"RUF100",
]
[tool.ruff.lint.per-file-ignores]
# SIM117: nesting the expected failure inside the mock setup keeps the two
# apart. N811: aliasing an import to say where it came from is the point.
"tests/**" = [
"S101", "ARG", "N806", "NPY002", "PTH", "PT009", "PT027",
"SIM117", "N811",
]
"docs/**" = ["A001", "INP001"]