-
Notifications
You must be signed in to change notification settings - Fork 87
/
pyproject.toml
96 lines (83 loc) · 2.19 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "wiktextract"
version = "1.99.7"
description = "Wiktionary dump file parser and multilingual data extractor"
readme = "README.md"
license = {text = "MIT License"}
authors = [
{name = "Tatu Ylonen", email = "[email protected]"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Text Processing",
"Topic :: Text Processing :: Linguistic",
]
requires-python = ">=3.10"
dependencies = [
"levenshtein",
"nltk",
"pydantic",
"wikitextprocessor @ git+https://github.com/tatuylonen/wikitextprocessor.git",
]
[project.optional-dependencies]
dev = [
"coverage[toml]",
"mypy",
"ruff",
]
[project.scripts]
wiktwords = "wiktextract.wiktwords:main"
[project.urls]
homepage = "https://github.com/tatuylonen/wiktextract"
[tool.setuptools]
zip-safe = false
[tool.setuptools.package-data]
wiktextract = [
"data/*/*",
"py.typed",
]
[tool.coverage.run]
branch = true
concurrency = ["multiprocessing"]
omit = [
"tests/*",
"src/wiktextract/taxondata.py", # huge file
]
[tool.coverage.html]
directory = "_site/htmlcov"
[tool.black]
line-length = 80
[tool.ruff]
line-length = 80
[tool.ruff.lint]
select = [
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
"W", # pycodestyle warning
]
[tool.ruff.lint.per-file-ignores]
"src/wiktextract/taxondata.py" = ["E501"]
"src/wiktextract/tags.py" = ["E501"]
"src/wiktextract/table_headers_heuristics_data.py" = ["E501"]
# ignore long line rule in tests because spaces before HTML tag are
# parsed as "preformatted" node
"tests/*" = ["E501"]
[tool.mypy]
mypy_path = "typestubs"
python_version = "3.10"