-
Notifications
You must be signed in to change notification settings - Fork 315
Expand file tree
/
Copy pathpyproject.toml
More file actions
197 lines (182 loc) · 5.41 KB
/
pyproject.toml
File metadata and controls
197 lines (182 loc) · 5.41 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "datasketch"
version = "1.9.0"
description = "Probabilistic data structures for processing and searching very large datasets"
readme = "README.rst"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [{ name = "ekzhu", email = "ekzhu@cs.toronto.edu" }]
keywords = ["database", "datamining"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Database",
"Topic :: Scientific/Engineering :: Information Analysis",
"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",
]
dependencies = ["numpy>=1.11", "scipy>=1.0.0"]
[project.optional-dependencies]
cassandra = ["cassandra-driver>=3.20"]
redis = ["redis>=2.10.0"]
bloom = ["pybloomfilter3>=0.7.2"]
benchmark = [
"pyhash>=0.9.3", # TODO: fix installation
"matplotlib>=3.1.2",
"scikit-learn>=0.21.3",
"scipy>=1.3.3",
"pandas>=0.25.3",
"SetSimilaritySearch>=0.1.7",
"pyfarmhash>=0.2.2",
"nltk>=3.4.5",
]
test = [
"cassandra-driver>=3.20",
"redis>=2.10.0",
"mock>=2.0.0",
"mockredispy",
"coverage",
"pytest-cov",
"pymongo>=3.9.0",
"nose>=1.3.7",
"nose-exclude>=0.5.0",
"pytest",
"pytest-rerunfailures",
"pytest-asyncio",
]
experimental_aio = ["aiounittest", "motor>3.6.0"]
[project.urls]
Homepage = "https://ekzhu.github.io/datasketch"
"Bug Tracker" = "https://github.com/ekzhu/datasketch/issues"
Documentation = "https://ekzhu.github.io/datasketch"
Source = "https://github.com/ekzhu/datasketch"
[tool.codespell]
# Todo: enable also python files in a next step
# skip = '*.py'
quiet-level = 3
# comma separated list of words; waiting for:
# https://github.com/codespell-project/codespell/issues/2839#issuecomment-1731601603
# also adding links until they ignored by its: nature
# https://github.com/codespell-project/codespell/issues/2243#issuecomment-1732019960
ignore-words-list = "cancelation"
[tool.docformatter]
recursive = true
# this need to be shorter as some docstings are r"""...
wrap-summaries = 119
wrap-descriptions = 120
blank = true
[tool.ruff]
line-length = 120
target-version = "py39"
exclude = [
".eggs",
".git",
".mypy_cache",
".ruff_cache",
"__pycache__",
"__pypackages__",
"_build",
"benchmark",
"build",
"dist",
"docs",
"examples",
"datasketch/hyperloglog_const.py",
]
[tool.ruff.lint]
fixable = ["ALL"]
unfixable = []
select = [
"ASYNC", # async checks
"B", # bugbear checks
"D", # pydocstyle checks
"E", # pycodestyle error checks
"ERA", # remove connected out code
"F", # pyflakes checks
"FIX", # fixme checks
"I", # isort
"INP", # implicit namespace package
"ISC", # implicit string concat
"Q", # flake8-quotes checks
"RET", # flake8-return check
"RSE", # raise exception parantheses check
"RUF", # RUF specific rules
"SIM", # flake8-simplify check
"T20", # typing checks
"W", # pycodestyle warning checks
"T100", # Debugger,
"S", # Bandit checks
]
ignore = [
"D100", # allow missing docstring in public module
"D104", # allow missing docstring in public package
"D203", # incompatible with D211
"D213", # incompatible with D212
"D418", # allow overload to have a docstring
"TD003", # allow missing link to todo issue
"FIX002", # allow todo comments
"B027", # allow empty non-abstract method in ABC
"S324", # TODO: hashlib-insecure-hash-function
"D101", # TODO: missing docstring in public class
"D102", # TODO: missing docstring in public method
"D103", # TODO: missing docstring in public function
"D105", # TODO: missing docstring in magic method
"D107", # TODO: missing docstring in public init
"D205", # TODO: missing blank line after summary
"D400", # TODO: missing trailing period
"D401", # TODO: non imperative mood
"D417", # TODO: undocumented-param
"E731", # TODO: allow lambda assignment
"E741", # TODO: ambiguous-variable-name
"S301", # TODO: suspicious pickle usage
"S311", # TODO: suspicious non-cryptographic random usage
]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.per-file-ignores]
"test/**" = ["S101"] # Allow asserts in tests
[tool.hatch.build.targets.wheel]
packages = ["datasketch"]
[tool.hatch.build.targets.sdist]
include = ["pyproject.toml", "README.rst", "LICENSE", "datasketch/**"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["--strict-markers", "--color=yes", "--cov-report=xml"]
testpaths = ["test"]
asyncio_mode = "auto"
[tool.pyright]
include = ["datasketch"]
exclude = [
"benchmark",
"docs",
"examples",
"test",
"travis",
"**/.venv/**",
"**/__pycache__",
]
pythonVersion = "3.9"
typeCheckingMode = "basic" # todo: change to "strict" in future
reportMissingImports = "none"
reportUnusedVariable = "warning"
reportAttributeAccessIssue = "none"
reportOptionalMemberAccess = "none"
reportGeneralTypeIssues = "none"
reportArgumentType = "none"
reportOptionalIterable = "none"
reportReturnType = "none"
reportRedeclaration = "none"
reportOperatorIssue = "none"
reportAssignmentType = "none"
reportOptionalSubscript = "none"
reportCallIssue = "none"
[tool.coverage.run]
source = ["datasketch"]
omit = ["*/experimental/*", "*/tests/*", "*/test/*"]