##// END OF EJS Templates
MAINT: try to silence some coverage warnings (#14471)
M Bussonnier -
r28807:580137e7 merge
parent child Browse files
Show More
@@ -1,369 +1,375 b''
1 1 [build-system]
2 2 requires = ["setuptools>=61.2"]
3 3 # We need access to the 'setupbase' module at build time.
4 4 # Hence we declare a custom build backend.
5 5 build-backend = "_build_meta" # just re-exports setuptools.build_meta definitions
6 6 backend-path = ["."]
7 7
8 8 [project]
9 9 name = "ipython"
10 10 description = "IPython: Productive Interactive Computing"
11 11 keywords = ["Interactive", "Interpreter", "Shell", "Embedding"]
12 12 classifiers = [
13 13 "Framework :: IPython",
14 14 "Framework :: Jupyter",
15 15 "Intended Audience :: Developers",
16 16 "Intended Audience :: Science/Research",
17 17 "License :: OSI Approved :: BSD License",
18 18 "Programming Language :: Python",
19 19 "Programming Language :: Python :: 3",
20 20 "Programming Language :: Python :: 3 :: Only",
21 21 "Topic :: System :: Shells",
22 22 ]
23 23 requires-python = ">=3.10"
24 24 dependencies = [
25 25 'colorama; sys_platform == "win32"',
26 26 "decorator",
27 27 "exceptiongroup; python_version<'3.11'",
28 28 "jedi>=0.16",
29 29 "matplotlib-inline",
30 30 'pexpect>4.3; sys_platform != "win32" and sys_platform != "emscripten"',
31 31 "prompt_toolkit>=3.0.41,<3.1.0",
32 32 "pygments>=2.4.0",
33 33 "stack_data",
34 34 "traitlets>=5.13.0",
35 35 "typing_extensions>=4.6; python_version<'3.12'",
36 36 ]
37 37 dynamic = ["authors", "license", "version"]
38 38
39 39 [project.entry-points."pygments.lexers"]
40 40 ipythonconsole = "IPython.lib.lexers:IPythonConsoleLexer"
41 41 ipython = "IPython.lib.lexers:IPythonLexer"
42 42 ipython3 = "IPython.lib.lexers:IPython3Lexer"
43 43
44 44 [project.scripts]
45 45 ipython = "IPython:start_ipython"
46 46 ipython3 = "IPython:start_ipython"
47 47
48 48 [project.readme]
49 49 file = "long_description.rst"
50 50 content-type = "text/x-rst"
51 51
52 52 [project.urls]
53 53 Homepage = "https://ipython.org"
54 54 Documentation = "https://ipython.readthedocs.io/"
55 55 Funding = "https://numfocus.org/"
56 56 Source = "https://github.com/ipython/ipython"
57 57 Tracker = "https://github.com/ipython/ipython/issues"
58 58
59 59 [project.optional-dependencies]
60 60 black = [
61 61 "black",
62 62 ]
63 63 doc = [
64 64 "docrepr",
65 65 "exceptiongroup",
66 66 "intersphinx_registry",
67 67 "ipykernel",
68 68 "ipython[test]",
69 69 "matplotlib",
70 70 "setuptools>=18.5",
71 71 "sphinx-rtd-theme",
72 72 "sphinx>=1.3",
73 73 "sphinxcontrib-jquery",
74 74 "tomli ; python_version<'3.11'",
75 75 "typing_extensions",
76 76 ]
77 77 kernel = [
78 78 "ipykernel",
79 79 ]
80 80 nbconvert = [
81 81 "nbconvert",
82 82 ]
83 83 nbformat = [
84 84 "nbformat",
85 85 ]
86 86 notebook = [
87 87 "ipywidgets",
88 88 "notebook",
89 89 ]
90 90 parallel = [
91 91 "ipyparallel",
92 92 ]
93 93 qtconsole = [
94 94 "qtconsole",
95 95 ]
96 96 terminal = []
97 97 test = [
98 98 "pytest",
99 99 "pytest-asyncio<0.22",
100 100 "testpath",
101 101 "pickleshare",
102 102 "packaging",
103 103 ]
104 104 test_extra = [
105 105 "ipython[test]",
106 106 "curio",
107 107 "matplotlib!=3.2.0",
108 108 "nbformat",
109 109 "numpy>=1.23",
110 110 "pandas",
111 111 "trio",
112 112 ]
113 113 matplotlib = [
114 114 "matplotlib"
115 115 ]
116 116 all = [
117 117 "ipython[black,doc,kernel,nbconvert,nbformat,notebook,parallel,qtconsole,matplotlib]",
118 118 "ipython[test,test_extra]",
119 119 ]
120 120
121 121 [tool.mypy]
122 122 python_version = "3.10"
123 123 ignore_missing_imports = true
124 124 follow_imports = 'silent'
125 125 exclude = [
126 126 'test_\.+\.py',
127 127 'IPython.utils.tests.test_wildcard',
128 128 'testing',
129 129 'tests',
130 130 'PyColorize.py',
131 131 '_process_win32_controller.py',
132 132 'IPython/core/application.py',
133 133 'IPython/core/profileapp.py',
134 134 'IPython/lib/deepreload.py',
135 135 'IPython/sphinxext/ipython_directive.py',
136 136 'IPython/terminal/ipapp.py',
137 137 'IPython/utils/_process_win32.py',
138 138 'IPython/utils/path.py',
139 139 ]
140 140 disallow_untyped_defs = true
141 141 # ignore_errors = false
142 142 # ignore_missing_imports = false
143 143 # disallow_untyped_calls = true
144 144 disallow_incomplete_defs = true
145 145 # check_untyped_defs = true
146 146 # disallow_untyped_decorators = true
147 147 warn_redundant_casts = true
148 148
149 149 [[tool.mypy.overrides]]
150 150 module = [
151 151 "IPython.utils.text",
152 152 ]
153 153 disallow_untyped_defs = false
154 154 check_untyped_defs = false
155 155 disallow_untyped_decorators = false
156 156
157 157
158 158 # gloabl ignore error
159 159 [[tool.mypy.overrides]]
160 160 module = [
161 161 "IPython",
162 162 "IPython.conftest",
163 163 "IPython.core.alias",
164 164 "IPython.core.async_helpers",
165 165 "IPython.core.autocall",
166 166 "IPython.core.builtin_trap",
167 167 "IPython.core.compilerop",
168 168 "IPython.core.completer",
169 169 "IPython.core.completerlib",
170 170 "IPython.core.crashhandler",
171 171 "IPython.core.debugger",
172 172 "IPython.core.display",
173 173 "IPython.core.display_functions",
174 174 "IPython.core.display_trap",
175 175 "IPython.core.displayhook",
176 176 "IPython.core.displaypub",
177 177 "IPython.core.events",
178 178 "IPython.core.excolors",
179 179 "IPython.core.extensions",
180 180 "IPython.core.formatters",
181 181 "IPython.core.getipython",
182 182 "IPython.core.guarded_eval",
183 183 "IPython.core.history",
184 184 "IPython.core.historyapp",
185 185 "IPython.core.hooks",
186 186 "IPython.core.inputsplitter",
187 187 "IPython.core.inputtransformer",
188 188 "IPython.core.inputtransformer2",
189 189 "IPython.core.interactiveshell",
190 190 "IPython.core.logger",
191 191 "IPython.core.macro",
192 192 "IPython.core.magic",
193 193 "IPython.core.magic_arguments",
194 194 "IPython.core.magics.ast_mod",
195 195 "IPython.core.magics.auto",
196 196 "IPython.core.magics.basic",
197 197 "IPython.core.magics.code",
198 198 "IPython.core.magics.config",
199 199 "IPython.core.magics.display",
200 200 "IPython.core.magics.execution",
201 201 "IPython.core.magics.extension",
202 202 "IPython.core.magics.history",
203 203 "IPython.core.magics.logging",
204 204 "IPython.core.magics.namespace",
205 205 "IPython.core.magics.osm",
206 206 "IPython.core.magics.packaging",
207 207 "IPython.core.magics.pylab",
208 208 "IPython.core.magics.script",
209 209 "IPython.core.oinspect",
210 210 "IPython.core.page",
211 211 "IPython.core.payload",
212 212 "IPython.core.payloadpage",
213 213 "IPython.core.prefilter",
214 214 "IPython.core.profiledir",
215 215 "IPython.core.prompts",
216 216 "IPython.core.pylabtools",
217 217 "IPython.core.shellapp",
218 218 "IPython.core.splitinput",
219 219 "IPython.core.ultratb",
220 220 "IPython.extensions.autoreload",
221 221 "IPython.extensions.storemagic",
222 222 "IPython.external.qt_for_kernel",
223 223 "IPython.external.qt_loaders",
224 224 "IPython.lib.backgroundjobs",
225 225 "IPython.lib.clipboard",
226 226 "IPython.lib.demo",
227 227 "IPython.lib.display",
228 228 "IPython.lib.editorhooks",
229 229 "IPython.lib.guisupport",
230 230 "IPython.lib.latextools",
231 231 "IPython.lib.lexers",
232 232 "IPython.lib.pretty",
233 233 "IPython.paths",
234 234 "IPython.sphinxext.ipython_console_highlighting",
235 235 "IPython.terminal.debugger",
236 236 "IPython.terminal.embed",
237 237 "IPython.terminal.interactiveshell",
238 238 "IPython.terminal.magics",
239 239 "IPython.terminal.prompts",
240 240 "IPython.terminal.pt_inputhooks",
241 241 "IPython.terminal.pt_inputhooks.asyncio",
242 242 "IPython.terminal.pt_inputhooks.glut",
243 243 "IPython.terminal.pt_inputhooks.gtk",
244 244 "IPython.terminal.pt_inputhooks.gtk3",
245 245 "IPython.terminal.pt_inputhooks.gtk4",
246 246 "IPython.terminal.pt_inputhooks.osx",
247 247 "IPython.terminal.pt_inputhooks.pyglet",
248 248 "IPython.terminal.pt_inputhooks.qt",
249 249 "IPython.terminal.pt_inputhooks.tk",
250 250 "IPython.terminal.pt_inputhooks.wx",
251 251 "IPython.terminal.ptutils",
252 252 "IPython.terminal.shortcuts",
253 253 "IPython.terminal.shortcuts.auto_match",
254 254 "IPython.terminal.shortcuts.auto_suggest",
255 255 "IPython.terminal.shortcuts.filters",
256 256 "IPython.utils._process_cli",
257 257 "IPython.utils._process_common",
258 258 "IPython.utils._process_emscripten",
259 259 "IPython.utils._process_posix",
260 260 "IPython.utils.capture",
261 261 "IPython.utils.coloransi",
262 262 "IPython.utils.contexts",
263 263 "IPython.utils.data",
264 264 "IPython.utils.decorators",
265 265 "IPython.utils.dir2",
266 266 "IPython.utils.encoding",
267 267 "IPython.utils.frame",
268 268 "IPython.utils.generics",
269 269 "IPython.utils.importstring",
270 270 "IPython.utils.io",
271 271 "IPython.utils.ipstruct",
272 272 "IPython.utils.module_paths",
273 273 "IPython.utils.openpy",
274 274 "IPython.utils.process",
275 275 "IPython.utils.py3compat",
276 276 "IPython.utils.sentinel",
277 277 "IPython.utils.shimmodule",
278 278 "IPython.utils.strdispatch",
279 279 "IPython.utils.sysinfo",
280 280 "IPython.utils.syspathcontext",
281 281 "IPython.utils.tempdir",
282 282 "IPython.utils.terminal",
283 283 "IPython.utils.timing",
284 284 "IPython.utils.tokenutil",
285 285 "IPython.utils.tz",
286 286 "IPython.utils.ulinecache",
287 287 "IPython.utils.version",
288 288 "IPython.utils.wildcard",
289 289
290 290 ]
291 291 disallow_untyped_defs = false
292 292 ignore_errors = true
293 293 ignore_missing_imports = true
294 294 disallow_untyped_calls = false
295 295 disallow_incomplete_defs = false
296 296 check_untyped_defs = false
297 297 disallow_untyped_decorators = false
298 298
299 299 [tool.pytest.ini_options]
300 300 addopts = [
301 301 "--durations=10",
302 302 "-pIPython.testing.plugin.pytest_ipdoctest",
303 303 "--ipdoctest-modules",
304 304 "--ignore=docs",
305 305 "--ignore=examples",
306 306 "--ignore=htmlcov",
307 307 "--ignore=ipython_kernel",
308 308 "--ignore=ipython_parallel",
309 309 "--ignore=results",
310 310 "--ignore=tmp",
311 311 "--ignore=tools",
312 312 "--ignore=traitlets",
313 313 "--ignore=IPython/core/tests/daft_extension",
314 314 "--ignore=IPython/sphinxext",
315 315 "--ignore=IPython/terminal/pt_inputhooks",
316 316 "--ignore=IPython/__main__.py",
317 317 "--ignore=IPython/external/qt_for_kernel.py",
318 318 "--ignore=IPython/html/widgets/widget_link.py",
319 319 "--ignore=IPython/html/widgets/widget_output.py",
320 320 "--ignore=IPython/terminal/console.py",
321 321 "--ignore=IPython/utils/_process_cli.py",
322 322 "--ignore=IPython/utils/_process_posix.py",
323 323 "--ignore=IPython/utils/_process_win32.py",
324 324 "--ignore=IPython/utils/_process_win32_controller.py",
325 325 "--ignore=IPython/utils/daemonize.py",
326 326 "--ignore=IPython/utils/eventful.py",
327 327 "--ignore=IPython/kernel",
328 328 "--ignore=IPython/consoleapp.py",
329 329 "--ignore=IPython/core/inputsplitter.py",
330 330 "--ignore=IPython/lib/kernel.py",
331 331 "--ignore=IPython/utils/jsonutil.py",
332 332 "--ignore=IPython/utils/localinterfaces.py",
333 333 "--ignore=IPython/utils/log.py",
334 334 "--ignore=IPython/utils/signatures.py",
335 335 "--ignore=IPython/utils/traitlets.py",
336 336 "--ignore=IPython/utils/version.py"
337 337 ]
338 338 doctest_optionflags = [
339 339 "NORMALIZE_WHITESPACE",
340 340 "ELLIPSIS"
341 341 ]
342 342 ipdoctest_optionflags = [
343 343 "NORMALIZE_WHITESPACE",
344 344 "ELLIPSIS"
345 345 ]
346 346 asyncio_mode = "strict"
347 347
348 348 [tool.pyright]
349 349 pythonPlatform="All"
350 350
351 351 [tool.setuptools]
352 352 zip-safe = false
353 353 platforms = ["Linux", "Mac OSX", "Windows"]
354 354 license-files = ["LICENSE"]
355 355 include-package-data = false
356 356
357 357 [tool.setuptools.packages.find]
358 358 exclude = ["setupext"]
359 359 namespaces = false
360 360
361 361 [tool.setuptools.package-data]
362 362 "IPython" = ["py.typed"]
363 363 "IPython.core" = ["profile/README*"]
364 364 "IPython.core.tests" = ["*.png", "*.jpg", "daft_extension/*.py"]
365 365 "IPython.lib.tests" = ["*.wav"]
366 366 "IPython.testing.plugin" = ["*.txt"]
367 367
368 368 [tool.setuptools.dynamic]
369 369 version = {attr = "IPython.core.release.__version__"}
370
371 [tool.coverage.run]
372 omit = [
373 # omit everything in /tmp as we run tempfile
374 "/tmp/*",
375 ]
General Comments 0
You need to be logged in to leave comments. Login now