-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
241 lines (212 loc) · 5.06 KB
/
setup.cfg
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
[bdist_wheel]
universal = 1
[metadata]
name = lcc-nlp
version = 1.0.0
author = Erik Körner
author_email = "Erik Körner" <[email protected]>
description = "LCC NLP Tools"
long_description = file: README.md
long_description_content_type = text/markdown
license = LGPL-3.0
keywords =
LCC
NLP
Tokenizer
Segmenter
Cleaner
Language Identification
classifier =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Intended Audience :: Information Technology
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Operating System :: OS Independent
Programming Language :: Python :: 3 :: Only
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
Topic :: File Formats
Topic :: Software Development :: Libraries
Topic :: Text Processing
Topic :: Text Processing :: Filters
Topic :: Text Processing :: Linguistic
Topic :: Utilities
url = https://github.com/Leipzig-Corpora-Collection/lcc-nlp-python/
project_urls =
Source = https://github.com/Leipzig-Corpora-Collection/lcc-nlp-python/
; Documentation = https://lcc-nlp.readthedocs.io/
Issue Tracker = https://github.com/Leipzig-Corpora-Collection/lcc-nlp-python/issues
[options]
zip_safe = False
include_package_data = True
package_dir =
=src
packages = find_namespace:
python_requires = >=3.9
install_requires =
regex
[options.packages.find]
where = src
[options.package_data]
lcc =
py.typed
[options.entry_points]
console_scripts =
lcc-nlp = lcc.cli:cli_main
[options.extras_require]
warc =
warcio >=1.7.4
integrations =
spacy >=3.7.2
tqdm =
tqdm >=4.66.1
test =
pytest >=7.2.1
pytest-clarity >=1.0.1
pytest-cov >=4.0.0
pytest-mock >=3.11.1
pytest-randomly >=3.12.0
tox
style =
black >=23.9.1
check-manifest >=0.49
flake8 >=6.1.0
isort >=5.12.0
mypy >=1.5.1
darglint >=1.8.1
types-regex
types-tqdm
;lxml-stubs
;docs =
; sphinx >=5.3.0
; sphinx-rtd-theme >=0.5.1
; myst-parser >=0.18.1
; ;mkdocs
build =
build >=1.0.3
twine >=4.0.2
; ### TOOLS #################################################################
; ### TOOLS > FLAKE8 ########################################################
[flake8]
max-line-length = 140
exclude =
venv
build
dist
docs
resources
htmlcov
.tox
.mypy_cache
.pytest_cache
.ruff_cache
docstring-convention = google
extend-ignore =
E203
; for now in development to see important ones
DAR
E501
per-file-ignores =
setup.py:D
tests/*:S,D,RST,F401,F841,E501
__main__.py:E,F
src/lcc/tokenizer.py:S105
; ### TOOLS > (FLAKE8) > DARGLINT ###########################################
[darglint]
docstring_style = google
; ### TOOLS > MYPY ##########################################################
[mypy]
exclude = (?x)(
^venv/
| ^.tox/
| ^.[^_]+_cache/
| ^docs/
| ^tests/
| ^dist/
| ^build/
| ^setup.py$
)
; ignore warcio typing, no stub files
[mypy-warcio]
ignore_missing_imports = True
[mypy-warcio.recordbuilder]
ignore_missing_imports = True
[mypy-warcio.recordloader]
ignore_missing_imports = True
; ### TOOLS > ISORT #########################################################
[tool:isort]
profile = black
line_length = 120
force_single_line = True
known_first_party = lcc
default_section = THIRDPARTY
forced_separate = test_lcc
extend_skip =
venv
dist
build
docs
resources
htmlcov
.tox
.mypy_cache
.pytest_cache
.ruff_cache
skip_gitignore = True
; ### TOOLS > PYTEST ########################################################
[tool:pytest]
;log_cli = True
;log_cli_level = DEBUG
addopts =
-ra
-vv
--strict-markers
--doctest-modules
--doctest-glob=\*.rst
--tb=short
--cov
;--cov-report=term-missing
python_files =
test_*.py
*_test.py
tests.py
testpaths =
tests
; ### TOOLS > PYTEST > COVERAGE #############################################
[coverage:paths]
source =
src
*/site-packages
[coverage:run]
branch = true
source =
lcc
; TODO might need to disable "tests" later, should be 100%
tests
parallel = true
[coverage:report]
;show_missing = true
precision = 2
exclude_also =
; Don't complain about abstract methods, they aren't run:
@(abc\.)?abstractmethod
; Skip any pass lines such as may be used for @abstractmethod
pass
; Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
; This should never even be possible in the first place
raise RuntimeError\(
; ### TOOLS > PACKAGING #####################################################
[check-manifest]
ignore =
.vscode/launch.json
.vscode/settings.json
; ### DOCUMENTATION > SPHINX ################################################
[build_sphinx]
source_dir = docs
build_dir = dist/docs