-
Notifications
You must be signed in to change notification settings - Fork 23
/
pyproject.toml
111 lines (101 loc) · 2.85 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
107
108
109
110
111
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "wikitextprocessor"
version = "0.4.96"
description = "Parser and expander for Wikipedia, Wiktionary etc. dump files, with Lua execution support"
readme = "README.md"
license = {text = "MIT License"}
authors = [
{name = "Tatu Ylonen", email = "ylo@clausal.com"},
]
keywords = [
"data extraction",
"dictionary",
"lua",
"scribunto",
"wikipedia",
"wikitext",
"wiktionary",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"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 = [
"dateparser",
"lupa",
"lxml",
"mediawiki_langcodes",
"psutil",
"requests",
]
[project.optional-dependencies]
dev = [
"coverage[toml]",
"mypy",
"ruff",
"types-dateparser",
"types-lxml",
"types-psutil",
"types-requests",
]
[project.urls]
homepage = "https://github.com/tatuylonen/wikitextprocessor"
[tool.setuptools]
zip-safe = false
[tool.setuptools.package-data]
wikitextprocessor = [
"lua/*.lua",
"lua/mediawiki-extensions-Scribunto/COPYING",
"lua/mediawiki-extensions-Scribunto/includes/Engines/LuaCommon/lualib/*.lua",
"lua/mediawiki-extensions-Scribunto/includes/Engines/LuaCommon/lualib/ustring/*.lua",
"lua/mediawiki-extensions-Scribunto/includes/Engines/LuaCommon/lualib/luabit/*.lua",
"data/*/*",
"py.typed",
]
[tool.mypy]
# Have to use $MYPY_CONFIG_FILE_DIR because by default mypy will scan for
# config files in the directory it is run from, and if the editor (like
# helix) has as its directory location, say, 'src/wikitextprocessor' mypy
# will try to find it only there, even if it has loaded configs from
# pyproject.toml.
# If you run mypy on the command line, do so from the root directory of
# the repo, where this config file is, or use `mypy --config-file ...`
mypy_path = "$MYPY_CONFIG_FILE_DIR/typestubs"
python_version = "3.10"
[tool.coverage.run]
branch = true
omit = ["tests/*"]
[tool.ruff]
line-length = 80
[tool.ruff.lint]
select = [
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
"W", # pycodestyle warning
]
[tool.typos]
files.extend-exclude = [
"src/wikitextprocessor/lua/mediawiki-extensions-Scribunto",
"src/wikitextprocessor/data",
"tests",
]
default.extend-ignore-identifiers-re = [
"uupper",
]