forked from wikimedia/pywikibot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
209 lines (187 loc) · 6.29 KB
/
pyproject.toml
File metadata and controls
209 lines (187 loc) · 6.29 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
198
199
200
201
202
203
204
205
206
207
208
209
[build-system]
requires = ["packaging", "setuptools>=77.0.3", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pywikibot"
##############################################################
# Keep this file readable for all entries above this comment #
##############################################################
authors = [
{name = "xqt", email = "info@gno.de"},
]
maintainers = [
{name = "The Pywikibot team", email = "pywikibot@lists.wikimedia.org"},
]
description = "Python MediaWiki Bot Framework"
requires-python = ">=3.9.0"
keywords = [
"API", "bot", "client", "framework", "mediawiki", "pwb", "pybot", "python",
"pywiki", "pywikibase", "pywikibot", "pywikipedia", "pywikipediabot",
"wiki", "wikibase", "wikidata", "wikimedia", "wikipedia",
]
license = "MIT"
license-files = ["LICENSE"]
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Natural Language :: Afrikaans",
"Natural Language :: Arabic",
"Natural Language :: Basque",
"Natural Language :: Bengali",
"Natural Language :: Bosnian",
"Natural Language :: Bulgarian",
"Natural Language :: Cantonese",
"Natural Language :: Catalan",
"Natural Language :: Chinese (Simplified)",
"Natural Language :: Chinese (Traditional)",
"Natural Language :: Croatian",
"Natural Language :: Czech",
"Natural Language :: Danish",
"Natural Language :: Dutch",
"Natural Language :: English",
"Natural Language :: Esperanto",
"Natural Language :: Finnish",
"Natural Language :: French",
"Natural Language :: Galician",
"Natural Language :: German",
"Natural Language :: Greek",
"Natural Language :: Hebrew",
"Natural Language :: Hindi",
"Natural Language :: Hungarian",
"Natural Language :: Icelandic",
"Natural Language :: Indonesian",
"Natural Language :: Irish",
"Natural Language :: Italian",
"Natural Language :: Japanese",
"Natural Language :: Javanese",
"Natural Language :: Korean",
"Natural Language :: Latin",
"Natural Language :: Latvian",
"Natural Language :: Lithuanian",
"Natural Language :: Macedonian",
"Natural Language :: Malay",
"Natural Language :: Marathi",
"Natural Language :: Nepali",
"Natural Language :: Norwegian",
"Natural Language :: Panjabi",
"Natural Language :: Persian",
"Natural Language :: Polish",
"Natural Language :: Portuguese",
"Natural Language :: Portuguese (Brazilian)",
"Natural Language :: Romanian",
"Natural Language :: Russian",
"Natural Language :: Serbian",
"Natural Language :: Slovak",
"Natural Language :: Slovenian",
"Natural Language :: Spanish",
"Natural Language :: Swedish",
"Natural Language :: Tamil",
"Natural Language :: Telugu",
"Natural Language :: Thai",
"Natural Language :: Tibetan",
"Natural Language :: Turkish",
"Natural Language :: Ukrainian",
"Natural Language :: Urdu",
"Natural Language :: Vietnamese",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: GraalPy",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Wiki",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
dynamic = [
"dependencies",
"optional-dependencies",
"readme",
"version",
]
[project.scripts]
pwb = "pywikibot.scripts.wrapper:run"
[project.urls]
Homepage = "https://www.mediawiki.org/wiki/Manual:Pywikibot"
Documentation = "https://doc.wikimedia.org/pywikibot/stable/"
Repository = "https://gerrit.wikimedia.org/r/plugins/gitiles/pywikibot/core/"
"GitHub Mirror" = "https://github.com/wikimedia/pywikibot"
Download = "https://www.pywikibot.org"
Changelog = "https://doc.wikimedia.org/pywikibot/master/changelog.html"
Tracker = "https://phabricator.wikimedia.org/tag/pywikibot/"
[tool.coverage.report]
ignore_errors = true
skip_empty = true
exclude_also = [
"@(abc\\.)?abstractmethod",
"@deprecated\\([^\\)]+\\)",
"@unittest\\.skip",
"class .+\\bProtocol\\):",
"except (ImportError|ModuleNotFoundError)",
"except KeyboardInterrupt",
"except OSError",
"except SyntaxError",
"except \\w*ServerError",
"if (0|False):",
"if .+PYWIKIBOT_TEST_\\w+.+:",
"if (typing\\.)?TYPE_CHECKING:",
"if __debug__:",
"if __name__ == .__main__.:",
"if self\\.mw_version < .+:",
# Comments to turn coverage on and off:
"no cover: start(?s:.)*?no cover: stop",
"raise (ImportError|ModuleNotFoundError)",
"raise NotImplementedError",
"raise unittest\\.SkipTest",
"self\\.skipTest",
]
[tool.coverage.run]
concurrency = ["multiprocessing", "thread"]
parallel = true
[tool.docsig]
disable = [
"SIG101",
"SIG202",
"SIG203",
"SIG301",
"SIG501",
"SIG503",
"SIG505",
]
[tool.isort]
py_version = 39
atomic = true
ensure_newline_before_comments = true
force_grid_wrap = 0
include_trailing_comma = true
lines_after_imports = 2
multi_line_output = 3
use_parentheses = true
extra_standard_library = ["tomllib"]
[tool.mypy]
python_version = "3.9"
enable_error_code = [
"ignore-without-code",
]
ignore_missing_imports = true
[tool.rstcheck]
ignore_directives = ["automodule", "autoclass", "autodata", "autofunction", "tabs"]
ignore_messages = '(Undefined substitution referenced: "(release|today|version)")'
ignore_roles = ["api", "phab", "pylib", "source", "wiki"]
[tool.ruff.lint]
select = ["C4", "D", "Q", "RSE"]
ignore = ["D105", "D211", "D213", "D214", "D301", "D401", "D404", "D406", "D407", "D412", "D413", "D416", "D417"]
[tool.ruff.lint.per-file-ignores]
"pywikibot/families/*" = ["D102"]
"tests/ui_tests.py" = ["D102", "D103"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"