Show More
@@ -1,392 +1,410 | |||||
1 | [build-system] |
|
1 | [build-system] | |
2 | requires = ["setuptools>=61.2"] |
|
2 | requires = ["setuptools>=61.2"] | |
3 | # We need access to the 'setupbase' module at build time. |
|
3 | # We need access to the 'setupbase' module at build time. | |
4 | # Hence we declare a custom build backend. |
|
4 | # Hence we declare a custom build backend. | |
5 | build-backend = "_build_meta" # just re-exports setuptools.build_meta definitions |
|
5 | build-backend = "_build_meta" # just re-exports setuptools.build_meta definitions | |
6 | backend-path = ["."] |
|
6 | backend-path = ["."] | |
7 |
|
7 | |||
8 | [project] |
|
8 | [project] | |
9 | name = "ipython" |
|
9 | name = "ipython" | |
10 | description = "IPython: Productive Interactive Computing" |
|
10 | description = "IPython: Productive Interactive Computing" | |
11 | keywords = ["Interactive", "Interpreter", "Shell", "Embedding"] |
|
11 | keywords = ["Interactive", "Interpreter", "Shell", "Embedding"] | |
12 | classifiers = [ |
|
12 | classifiers = [ | |
13 | "Framework :: IPython", |
|
13 | "Framework :: IPython", | |
14 | "Framework :: Jupyter", |
|
14 | "Framework :: Jupyter", | |
15 | "Intended Audience :: Developers", |
|
15 | "Intended Audience :: Developers", | |
16 | "Intended Audience :: Science/Research", |
|
16 | "Intended Audience :: Science/Research", | |
17 | "License :: OSI Approved :: BSD License", |
|
17 | "License :: OSI Approved :: BSD License", | |
18 | "Programming Language :: Python", |
|
18 | "Programming Language :: Python", | |
19 | "Programming Language :: Python :: 3", |
|
19 | "Programming Language :: Python :: 3", | |
20 | "Programming Language :: Python :: 3 :: Only", |
|
20 | "Programming Language :: Python :: 3 :: Only", | |
21 | "Topic :: System :: Shells", |
|
21 | "Topic :: System :: Shells", | |
22 | ] |
|
22 | ] | |
23 | requires-python = ">=3.11" |
|
23 | requires-python = ">=3.11" | |
24 | dependencies = [ |
|
24 | dependencies = [ | |
25 | 'colorama; sys_platform == "win32"', |
|
25 | 'colorama; sys_platform == "win32"', | |
26 | "decorator", |
|
26 | "decorator", | |
27 | "jedi>=0.16", |
|
27 | "jedi>=0.16", | |
28 | "matplotlib-inline", |
|
28 | "matplotlib-inline", | |
29 | 'pexpect>4.3; sys_platform != "win32" and sys_platform != "emscripten"', |
|
29 | 'pexpect>4.3; sys_platform != "win32" and sys_platform != "emscripten"', | |
30 | "prompt_toolkit>=3.0.41,<3.1.0", |
|
30 | "prompt_toolkit>=3.0.41,<3.1.0", | |
31 | "pygments>=2.4.0", |
|
31 | "pygments>=2.4.0", | |
32 | "stack_data", |
|
32 | "stack_data", | |
33 | "traitlets>=5.13.0", |
|
33 | "traitlets>=5.13.0", | |
34 | "typing_extensions>=4.6; python_version<'3.12'", |
|
34 | "typing_extensions>=4.6; python_version<'3.12'", | |
35 | ] |
|
35 | ] | |
36 | dynamic = ["authors", "license", "version"] |
|
36 | dynamic = ["authors", "license", "version"] | |
37 |
|
37 | |||
38 | [project.entry-points."pygments.lexers"] |
|
38 | [project.entry-points."pygments.lexers"] | |
39 | ipythonconsole = "IPython.lib.lexers:IPythonConsoleLexer" |
|
39 | ipythonconsole = "IPython.lib.lexers:IPythonConsoleLexer" | |
40 | ipython = "IPython.lib.lexers:IPythonLexer" |
|
40 | ipython = "IPython.lib.lexers:IPythonLexer" | |
41 | ipython3 = "IPython.lib.lexers:IPython3Lexer" |
|
41 | ipython3 = "IPython.lib.lexers:IPython3Lexer" | |
42 |
|
42 | |||
43 | [project.scripts] |
|
43 | [project.scripts] | |
44 | ipython = "IPython:start_ipython" |
|
44 | ipython = "IPython:start_ipython" | |
45 | ipython3 = "IPython:start_ipython" |
|
45 | ipython3 = "IPython:start_ipython" | |
46 |
|
46 | |||
47 | [project.readme] |
|
47 | [project.readme] | |
48 | file = "long_description.rst" |
|
48 | file = "long_description.rst" | |
49 | content-type = "text/x-rst" |
|
49 | content-type = "text/x-rst" | |
50 |
|
50 | |||
51 | [project.urls] |
|
51 | [project.urls] | |
52 | Homepage = "https://ipython.org" |
|
52 | Homepage = "https://ipython.org" | |
53 | Documentation = "https://ipython.readthedocs.io/" |
|
53 | Documentation = "https://ipython.readthedocs.io/" | |
54 | Funding = "https://numfocus.org/" |
|
54 | Funding = "https://numfocus.org/" | |
55 | Source = "https://github.com/ipython/ipython" |
|
55 | Source = "https://github.com/ipython/ipython" | |
56 | Tracker = "https://github.com/ipython/ipython/issues" |
|
56 | Tracker = "https://github.com/ipython/ipython/issues" | |
57 |
|
57 | |||
58 | [project.optional-dependencies] |
|
58 | [project.optional-dependencies] | |
59 | black = ["black"] |
|
59 | black = ["black"] | |
60 | doc = [ |
|
60 | doc = [ | |
61 | "docrepr", |
|
61 | "docrepr", | |
62 | "exceptiongroup", |
|
62 | "exceptiongroup", | |
63 | "intersphinx_registry", |
|
63 | "intersphinx_registry", | |
64 | "ipykernel", |
|
64 | "ipykernel", | |
65 | "ipython[test]", |
|
65 | "ipython[test]", | |
66 | "matplotlib", |
|
66 | "matplotlib", | |
67 | "setuptools>=18.5", |
|
67 | "setuptools>=18.5", | |
68 | "sphinx-rtd-theme", |
|
68 | "sphinx-rtd-theme", | |
69 | "sphinx>=1.3", |
|
69 | "sphinx>=1.3", | |
70 | "sphinxcontrib-jquery", |
|
70 | "sphinxcontrib-jquery", | |
71 | ] |
|
71 | ] | |
72 | kernel = ["ipykernel"] |
|
72 | kernel = ["ipykernel"] | |
73 | nbconvert = ["nbconvert"] |
|
73 | nbconvert = ["nbconvert"] | |
74 | nbformat = ["nbformat"] |
|
74 | nbformat = ["nbformat"] | |
75 | notebook = ["ipywidgets", "notebook"] |
|
75 | notebook = ["ipywidgets", "notebook"] | |
76 | parallel = ["ipyparallel"] |
|
76 | parallel = ["ipyparallel"] | |
77 | qtconsole = ["qtconsole"] |
|
77 | qtconsole = ["qtconsole"] | |
78 | terminal = [] |
|
78 | terminal = [] | |
79 | test = ["pytest", "pytest-asyncio<0.22", "testpath", "pickleshare", "packaging"] |
|
79 | test = ["pytest", "pytest-asyncio<0.22", "testpath", "pickleshare", "packaging"] | |
80 | test_extra = [ |
|
80 | test_extra = [ | |
81 | "ipython[test]", |
|
81 | "ipython[test]", | |
82 | "curio", |
|
82 | "curio", | |
83 | "matplotlib!=3.2.0", |
|
83 | "matplotlib!=3.2.0", | |
84 | "nbformat", |
|
84 | "nbformat", | |
85 | "numpy>=1.23", |
|
85 | "numpy>=1.23", | |
86 | "pandas", |
|
86 | "pandas", | |
87 | "trio", |
|
87 | "trio", | |
88 | ] |
|
88 | ] | |
89 | matplotlib = ["matplotlib"] |
|
89 | matplotlib = ["matplotlib"] | |
90 | all = [ |
|
90 | all = [ | |
91 | "ipython[black,doc,kernel,nbconvert,nbformat,notebook,parallel,qtconsole,matplotlib]", |
|
91 | "ipython[black,doc,kernel,nbconvert,nbformat,notebook,parallel,qtconsole,matplotlib]", | |
92 | "ipython[test,test_extra]", |
|
92 | "ipython[test,test_extra]", | |
93 | ] |
|
93 | ] | |
94 |
|
94 | |||
95 | [tool.mypy] |
|
95 | [tool.mypy] | |
96 | python_version = "3.10" |
|
96 | python_version = "3.10" | |
97 | ignore_missing_imports = true |
|
97 | ignore_missing_imports = true | |
98 | follow_imports = 'silent' |
|
98 | follow_imports = 'silent' | |
99 | exclude = [ |
|
99 | exclude = [ | |
100 | 'test_\.+\.py', |
|
100 | 'test_\.+\.py', | |
101 | 'IPython.utils.tests.test_wildcard', |
|
101 | 'IPython.utils.tests.test_wildcard', | |
102 | 'testing', |
|
102 | 'testing', | |
103 | 'tests', |
|
103 | 'tests', | |
104 | 'PyColorize.py', |
|
104 | 'PyColorize.py', | |
105 | '_process_win32_controller.py', |
|
105 | '_process_win32_controller.py', | |
106 | 'IPython/core/application.py', |
|
106 | 'IPython/core/application.py', | |
107 | 'IPython/core/profileapp.py', |
|
107 | 'IPython/core/profileapp.py', | |
108 | 'IPython/lib/deepreload.py', |
|
108 | 'IPython/lib/deepreload.py', | |
109 | 'IPython/sphinxext/ipython_directive.py', |
|
109 | 'IPython/sphinxext/ipython_directive.py', | |
110 | 'IPython/terminal/ipapp.py', |
|
110 | 'IPython/terminal/ipapp.py', | |
111 | 'IPython/utils/path.py', |
|
111 | 'IPython/utils/path.py', | |
112 | ] |
|
112 | ] | |
113 | # check_untyped_defs = true |
|
113 | # check_untyped_defs = true | |
114 | # disallow_untyped_calls = true |
|
114 | # disallow_untyped_calls = true | |
115 | # disallow_untyped_decorators = true |
|
115 | # disallow_untyped_decorators = true | |
116 | # ignore_errors = false |
|
116 | # ignore_errors = false | |
117 | # ignore_missing_imports = false |
|
117 | # ignore_missing_imports = false | |
118 | disallow_incomplete_defs = true |
|
118 | disallow_incomplete_defs = true | |
119 | disallow_untyped_defs = true |
|
119 | disallow_untyped_defs = true | |
120 | warn_redundant_casts = true |
|
120 | warn_redundant_casts = true | |
121 |
|
121 | |||
122 | [[tool.mypy.overrides]] |
|
122 | [[tool.mypy.overrides]] | |
123 | module = ["IPython.core.crashhandler"] |
|
123 | module = ["IPython.core.crashhandler"] | |
124 | check_untyped_defs = true |
|
124 | check_untyped_defs = true | |
125 | disallow_incomplete_defs = true |
|
125 | disallow_incomplete_defs = true | |
126 | disallow_untyped_calls = true |
|
126 | disallow_untyped_calls = true | |
127 | disallow_untyped_decorators = true |
|
127 | disallow_untyped_decorators = true | |
128 | disallow_untyped_defs = true |
|
128 | disallow_untyped_defs = true | |
129 | ignore_errors = false |
|
129 | ignore_errors = false | |
130 | ignore_missing_imports = false |
|
130 | ignore_missing_imports = false | |
131 |
|
131 | |||
132 | [[tool.mypy.overrides]] |
|
132 | [[tool.mypy.overrides]] | |
133 | module = ["IPython.utils.text"] |
|
133 | module = ["IPython.utils.text"] | |
134 | disallow_untyped_defs = true |
|
134 | disallow_untyped_defs = true | |
135 | check_untyped_defs = false |
|
135 | check_untyped_defs = false | |
136 | disallow_untyped_decorators = true |
|
136 | disallow_untyped_decorators = true | |
137 |
|
137 | |||
138 | [[tool.mypy.overrides]] |
|
138 | [[tool.mypy.overrides]] | |
139 | module = [] |
|
139 | module = [] | |
140 | disallow_untyped_defs = false |
|
140 | disallow_untyped_defs = false | |
141 | ignore_errors = true |
|
141 | ignore_errors = true | |
142 | ignore_missing_imports = true |
|
142 | ignore_missing_imports = true | |
143 | disallow_untyped_calls = false |
|
143 | disallow_untyped_calls = false | |
144 | disallow_incomplete_defs = false |
|
144 | disallow_incomplete_defs = false | |
145 | check_untyped_defs = false |
|
145 | check_untyped_defs = false | |
146 | disallow_untyped_decorators = false |
|
146 | disallow_untyped_decorators = false | |
147 |
|
147 | |||
148 |
|
148 | |||
149 | # gloabl ignore error |
|
149 | # gloabl ignore error | |
150 | [[tool.mypy.overrides]] |
|
150 | [[tool.mypy.overrides]] | |
151 | module = [ |
|
151 | module = [ | |
152 | "IPython", |
|
152 | "IPython", | |
153 | "IPython.conftest", |
|
153 | "IPython.conftest", | |
154 | "IPython.core.alias", |
|
154 | "IPython.core.alias", | |
155 | "IPython.core.async_helpers", |
|
155 | "IPython.core.async_helpers", | |
156 | "IPython.core.autocall", |
|
156 | "IPython.core.autocall", | |
157 | "IPython.core.builtin_trap", |
|
157 | "IPython.core.builtin_trap", | |
158 | "IPython.core.compilerop", |
|
158 | "IPython.core.compilerop", | |
159 | "IPython.core.completer", |
|
159 | "IPython.core.completer", | |
160 | "IPython.core.completerlib", |
|
160 | "IPython.core.completerlib", | |
161 | "IPython.core.debugger", |
|
161 | "IPython.core.debugger", | |
162 | "IPython.core.display", |
|
162 | "IPython.core.display", | |
163 | "IPython.core.display_functions", |
|
163 | "IPython.core.display_functions", | |
164 | "IPython.core.display_trap", |
|
164 | "IPython.core.display_trap", | |
165 | "IPython.core.displayhook", |
|
165 | "IPython.core.displayhook", | |
166 | "IPython.core.displaypub", |
|
166 | "IPython.core.displaypub", | |
167 | "IPython.core.events", |
|
167 | "IPython.core.events", | |
168 | "IPython.core.excolors", |
|
168 | "IPython.core.excolors", | |
169 | "IPython.core.extensions", |
|
169 | "IPython.core.extensions", | |
170 | "IPython.core.formatters", |
|
170 | "IPython.core.formatters", | |
171 | "IPython.core.getipython", |
|
171 | "IPython.core.getipython", | |
172 | "IPython.core.guarded_eval", |
|
172 | "IPython.core.guarded_eval", | |
173 | "IPython.core.historyapp", |
|
173 | "IPython.core.historyapp", | |
174 | "IPython.core.hooks", |
|
174 | "IPython.core.hooks", | |
175 | "IPython.core.inputtransformer", |
|
175 | "IPython.core.inputtransformer", | |
176 | "IPython.core.inputtransformer2", |
|
176 | "IPython.core.inputtransformer2", | |
177 | "IPython.core.interactiveshell", |
|
177 | "IPython.core.interactiveshell", | |
178 | "IPython.core.logger", |
|
178 | "IPython.core.logger", | |
179 | "IPython.core.macro", |
|
179 | "IPython.core.macro", | |
180 | "IPython.core.magic", |
|
180 | "IPython.core.magic", | |
181 | "IPython.core.magic_arguments", |
|
181 | "IPython.core.magic_arguments", | |
182 | "IPython.core.magics.ast_mod", |
|
182 | "IPython.core.magics.ast_mod", | |
183 | "IPython.core.magics.auto", |
|
183 | "IPython.core.magics.auto", | |
184 | "IPython.core.magics.basic", |
|
184 | "IPython.core.magics.basic", | |
185 | "IPython.core.magics.code", |
|
185 | "IPython.core.magics.code", | |
186 | "IPython.core.magics.config", |
|
186 | "IPython.core.magics.config", | |
187 | "IPython.core.magics.display", |
|
187 | "IPython.core.magics.display", | |
188 | "IPython.core.magics.execution", |
|
188 | "IPython.core.magics.execution", | |
189 | "IPython.core.magics.extension", |
|
189 | "IPython.core.magics.extension", | |
190 | "IPython.core.magics.history", |
|
190 | "IPython.core.magics.history", | |
191 | "IPython.core.magics.logging", |
|
191 | "IPython.core.magics.logging", | |
192 | "IPython.core.magics.namespace", |
|
192 | "IPython.core.magics.namespace", | |
193 | "IPython.core.magics.osm", |
|
193 | "IPython.core.magics.osm", | |
194 | "IPython.core.magics.packaging", |
|
194 | "IPython.core.magics.packaging", | |
195 | "IPython.core.magics.pylab", |
|
195 | "IPython.core.magics.pylab", | |
196 | "IPython.core.magics.script", |
|
196 | "IPython.core.magics.script", | |
197 | "IPython.core.oinspect", |
|
197 | "IPython.core.oinspect", | |
198 | "IPython.core.page", |
|
198 | "IPython.core.page", | |
199 | "IPython.core.payload", |
|
199 | "IPython.core.payload", | |
200 | "IPython.core.payloadpage", |
|
200 | "IPython.core.payloadpage", | |
201 | "IPython.core.prefilter", |
|
201 | "IPython.core.prefilter", | |
202 | "IPython.core.profiledir", |
|
202 | "IPython.core.profiledir", | |
203 | "IPython.core.prompts", |
|
203 | "IPython.core.prompts", | |
204 | "IPython.core.pylabtools", |
|
204 | "IPython.core.pylabtools", | |
205 | "IPython.core.shellapp", |
|
205 | "IPython.core.shellapp", | |
206 | "IPython.core.splitinput", |
|
206 | "IPython.core.splitinput", | |
207 | "IPython.core.ultratb", |
|
207 | "IPython.core.ultratb", | |
208 | "IPython.extensions.autoreload", |
|
208 | "IPython.extensions.autoreload", | |
209 | "IPython.extensions.storemagic", |
|
209 | "IPython.extensions.storemagic", | |
210 | "IPython.external.qt_for_kernel", |
|
210 | "IPython.external.qt_for_kernel", | |
211 | "IPython.external.qt_loaders", |
|
211 | "IPython.external.qt_loaders", | |
212 | "IPython.lib.backgroundjobs", |
|
212 | "IPython.lib.backgroundjobs", | |
213 | "IPython.lib.clipboard", |
|
213 | "IPython.lib.clipboard", | |
214 | "IPython.lib.demo", |
|
214 | "IPython.lib.demo", | |
215 | "IPython.lib.display", |
|
215 | "IPython.lib.display", | |
216 | "IPython.lib.editorhooks", |
|
216 | "IPython.lib.editorhooks", | |
217 | "IPython.lib.guisupport", |
|
217 | "IPython.lib.guisupport", | |
218 | "IPython.lib.latextools", |
|
218 | "IPython.lib.latextools", | |
219 | "IPython.lib.lexers", |
|
219 | "IPython.lib.lexers", | |
220 | "IPython.lib.pretty", |
|
220 | "IPython.lib.pretty", | |
221 | "IPython.paths", |
|
221 | "IPython.paths", | |
222 | "IPython.sphinxext.ipython_console_highlighting", |
|
222 | "IPython.sphinxext.ipython_console_highlighting", | |
223 | "IPython.terminal.debugger", |
|
223 | "IPython.terminal.debugger", | |
224 | "IPython.terminal.embed", |
|
224 | "IPython.terminal.embed", | |
225 | "IPython.terminal.interactiveshell", |
|
225 | "IPython.terminal.interactiveshell", | |
226 | "IPython.terminal.magics", |
|
226 | "IPython.terminal.magics", | |
227 | "IPython.terminal.prompts", |
|
227 | "IPython.terminal.prompts", | |
228 | "IPython.terminal.pt_inputhooks", |
|
228 | "IPython.terminal.pt_inputhooks", | |
229 | "IPython.terminal.pt_inputhooks.asyncio", |
|
229 | "IPython.terminal.pt_inputhooks.asyncio", | |
230 | "IPython.terminal.pt_inputhooks.glut", |
|
230 | "IPython.terminal.pt_inputhooks.glut", | |
231 | "IPython.terminal.pt_inputhooks.gtk", |
|
231 | "IPython.terminal.pt_inputhooks.gtk", | |
232 | "IPython.terminal.pt_inputhooks.gtk3", |
|
232 | "IPython.terminal.pt_inputhooks.gtk3", | |
233 | "IPython.terminal.pt_inputhooks.gtk4", |
|
233 | "IPython.terminal.pt_inputhooks.gtk4", | |
234 | "IPython.terminal.pt_inputhooks.osx", |
|
234 | "IPython.terminal.pt_inputhooks.osx", | |
235 | "IPython.terminal.pt_inputhooks.pyglet", |
|
235 | "IPython.terminal.pt_inputhooks.pyglet", | |
236 | "IPython.terminal.pt_inputhooks.qt", |
|
236 | "IPython.terminal.pt_inputhooks.qt", | |
237 | "IPython.terminal.pt_inputhooks.tk", |
|
237 | "IPython.terminal.pt_inputhooks.tk", | |
238 | "IPython.terminal.pt_inputhooks.wx", |
|
238 | "IPython.terminal.pt_inputhooks.wx", | |
239 | "IPython.terminal.ptutils", |
|
239 | "IPython.terminal.ptutils", | |
240 | "IPython.terminal.shortcuts", |
|
240 | "IPython.terminal.shortcuts", | |
241 | "IPython.terminal.shortcuts.auto_match", |
|
241 | "IPython.terminal.shortcuts.auto_match", | |
242 | "IPython.terminal.shortcuts.auto_suggest", |
|
242 | "IPython.terminal.shortcuts.auto_suggest", | |
243 | "IPython.terminal.shortcuts.filters", |
|
243 | "IPython.terminal.shortcuts.filters", | |
244 | "IPython.utils._process_cli", |
|
244 | "IPython.utils._process_cli", | |
245 | "IPython.utils._process_common", |
|
245 | "IPython.utils._process_common", | |
246 | "IPython.utils._process_emscripten", |
|
246 | "IPython.utils._process_emscripten", | |
247 | "IPython.utils._process_posix", |
|
247 | "IPython.utils._process_posix", | |
248 | "IPython.utils.capture", |
|
248 | "IPython.utils.capture", | |
249 | "IPython.utils.coloransi", |
|
249 | "IPython.utils.coloransi", | |
250 | "IPython.utils.contexts", |
|
250 | "IPython.utils.contexts", | |
251 | "IPython.utils.data", |
|
251 | "IPython.utils.data", | |
252 | "IPython.utils.decorators", |
|
252 | "IPython.utils.decorators", | |
253 | "IPython.utils.dir2", |
|
253 | "IPython.utils.dir2", | |
254 | "IPython.utils.encoding", |
|
254 | "IPython.utils.encoding", | |
255 | "IPython.utils.frame", |
|
255 | "IPython.utils.frame", | |
256 | "IPython.utils.generics", |
|
256 | "IPython.utils.generics", | |
257 | "IPython.utils.importstring", |
|
257 | "IPython.utils.importstring", | |
258 | "IPython.utils.io", |
|
258 | "IPython.utils.io", | |
259 | "IPython.utils.ipstruct", |
|
259 | "IPython.utils.ipstruct", | |
260 | "IPython.utils.module_paths", |
|
260 | "IPython.utils.module_paths", | |
261 | "IPython.utils.openpy", |
|
261 | "IPython.utils.openpy", | |
262 | "IPython.utils.process", |
|
262 | "IPython.utils.process", | |
263 | "IPython.utils.py3compat", |
|
263 | "IPython.utils.py3compat", | |
264 | "IPython.utils.sentinel", |
|
264 | "IPython.utils.sentinel", | |
265 | "IPython.utils.strdispatch", |
|
265 | "IPython.utils.strdispatch", | |
266 | "IPython.utils.sysinfo", |
|
266 | "IPython.utils.sysinfo", | |
267 | "IPython.utils.syspathcontext", |
|
267 | "IPython.utils.syspathcontext", | |
268 | "IPython.utils.tempdir", |
|
268 | "IPython.utils.tempdir", | |
269 | "IPython.utils.terminal", |
|
269 | "IPython.utils.terminal", | |
270 | "IPython.utils.timing", |
|
270 | "IPython.utils.timing", | |
271 | "IPython.utils.tokenutil", |
|
271 | "IPython.utils.tokenutil", | |
272 | "IPython.utils.version", |
|
272 | "IPython.utils.version", | |
273 | "IPython.utils.wildcard", |
|
273 | "IPython.utils.wildcard", | |
274 |
|
274 | |||
275 | ] |
|
275 | ] | |
276 | disallow_untyped_defs = false |
|
276 | disallow_untyped_defs = false | |
277 | ignore_errors = true |
|
277 | ignore_errors = true | |
278 | ignore_missing_imports = true |
|
278 | ignore_missing_imports = true | |
279 | disallow_untyped_calls = false |
|
279 | disallow_untyped_calls = false | |
280 | disallow_incomplete_defs = false |
|
280 | disallow_incomplete_defs = false | |
281 | check_untyped_defs = false |
|
281 | check_untyped_defs = false | |
282 | disallow_untyped_decorators = false |
|
282 | disallow_untyped_decorators = false | |
283 |
|
283 | |||
284 | [tool.pytest.ini_options] |
|
284 | [tool.pytest.ini_options] | |
285 | addopts = [ |
|
285 | addopts = [ | |
286 | "--durations=10", |
|
286 | "--durations=10", | |
287 | "-pIPython.testing.plugin.pytest_ipdoctest", |
|
287 | "-pIPython.testing.plugin.pytest_ipdoctest", | |
288 | "--ipdoctest-modules", |
|
288 | "--ipdoctest-modules", | |
289 | "--ignore=docs", |
|
289 | "--ignore=docs", | |
290 | "--ignore=examples", |
|
290 | "--ignore=examples", | |
291 | "--ignore=htmlcov", |
|
291 | "--ignore=htmlcov", | |
292 | "--ignore=ipython_kernel", |
|
292 | "--ignore=ipython_kernel", | |
293 | "--ignore=ipython_parallel", |
|
293 | "--ignore=ipython_parallel", | |
294 | "--ignore=results", |
|
294 | "--ignore=results", | |
295 | "--ignore=tmp", |
|
295 | "--ignore=tmp", | |
296 | "--ignore=tools", |
|
296 | "--ignore=tools", | |
297 | "--ignore=traitlets", |
|
297 | "--ignore=traitlets", | |
298 | "--ignore=IPython/core/tests/daft_extension", |
|
298 | "--ignore=IPython/core/tests/daft_extension", | |
299 | "--ignore=IPython/sphinxext", |
|
299 | "--ignore=IPython/sphinxext", | |
300 | "--ignore=IPython/terminal/pt_inputhooks", |
|
300 | "--ignore=IPython/terminal/pt_inputhooks", | |
301 | "--ignore=IPython/__main__.py", |
|
301 | "--ignore=IPython/__main__.py", | |
302 | "--ignore=IPython/external/qt_for_kernel.py", |
|
302 | "--ignore=IPython/external/qt_for_kernel.py", | |
303 | "--ignore=IPython/html/widgets/widget_link.py", |
|
303 | "--ignore=IPython/html/widgets/widget_link.py", | |
304 | "--ignore=IPython/html/widgets/widget_output.py", |
|
304 | "--ignore=IPython/html/widgets/widget_output.py", | |
305 | "--ignore=IPython/terminal/console.py", |
|
305 | "--ignore=IPython/terminal/console.py", | |
306 | "--ignore=IPython/utils/_process_cli.py", |
|
306 | "--ignore=IPython/utils/_process_cli.py", | |
307 | "--ignore=IPython/utils/_process_posix.py", |
|
307 | "--ignore=IPython/utils/_process_posix.py", | |
308 | "--ignore=IPython/utils/_process_win32_controller.py", |
|
308 | "--ignore=IPython/utils/_process_win32_controller.py", | |
309 | "--ignore=IPython/utils/daemonize.py", |
|
309 | "--ignore=IPython/utils/daemonize.py", | |
310 | "--ignore=IPython/utils/eventful.py", |
|
310 | "--ignore=IPython/utils/eventful.py", | |
311 | "--ignore=IPython/kernel", |
|
311 | "--ignore=IPython/kernel", | |
312 | "--ignore=IPython/consoleapp.py", |
|
312 | "--ignore=IPython/consoleapp.py", | |
313 | "--ignore=IPython/lib/kernel.py", |
|
313 | "--ignore=IPython/lib/kernel.py", | |
314 | "--ignore=IPython/utils/jsonutil.py", |
|
314 | "--ignore=IPython/utils/jsonutil.py", | |
315 | "--ignore=IPython/utils/localinterfaces.py", |
|
315 | "--ignore=IPython/utils/localinterfaces.py", | |
316 | "--ignore=IPython/utils/log.py", |
|
316 | "--ignore=IPython/utils/log.py", | |
317 | "--ignore=IPython/utils/signatures.py", |
|
317 | "--ignore=IPython/utils/signatures.py", | |
318 | "--ignore=IPython/utils/version.py", |
|
318 | "--ignore=IPython/utils/version.py", | |
319 | ] |
|
319 | ] | |
320 | doctest_optionflags = ["NORMALIZE_WHITESPACE", "ELLIPSIS"] |
|
320 | doctest_optionflags = ["NORMALIZE_WHITESPACE", "ELLIPSIS"] | |
321 | ipdoctest_optionflags = ["NORMALIZE_WHITESPACE", "ELLIPSIS"] |
|
321 | ipdoctest_optionflags = ["NORMALIZE_WHITESPACE", "ELLIPSIS"] | |
322 | asyncio_mode = "strict" |
|
322 | asyncio_mode = "strict" | |
323 |
|
323 | |||
324 | [tool.pyright] |
|
324 | [tool.pyright] | |
325 | pythonPlatform = "All" |
|
325 | pythonPlatform = "All" | |
326 |
|
326 | |||
327 | [tool.setuptools] |
|
327 | [tool.setuptools] | |
328 | zip-safe = false |
|
328 | zip-safe = false | |
329 | platforms = ["Linux", "Mac OSX", "Windows"] |
|
329 | platforms = ["Linux", "Mac OSX", "Windows"] | |
330 | license-files = ["LICENSE"] |
|
330 | license-files = ["LICENSE"] | |
331 | include-package-data = false |
|
331 | include-package-data = false | |
332 |
|
332 | |||
333 | [tool.setuptools.packages.find] |
|
333 | [tool.setuptools.packages.find] | |
334 | exclude = ["setupext"] |
|
334 | exclude = ["setupext"] | |
335 | namespaces = false |
|
335 | namespaces = false | |
336 |
|
336 | |||
337 | [tool.setuptools.package-data] |
|
337 | [tool.setuptools.package-data] | |
338 | "IPython" = ["py.typed"] |
|
338 | "IPython" = ["py.typed"] | |
339 | "IPython.core" = ["profile/README*"] |
|
339 | "IPython.core" = ["profile/README*"] | |
340 | "IPython.core.tests" = ["*.png", "*.jpg", "daft_extension/*.py"] |
|
340 | "IPython.core.tests" = ["*.png", "*.jpg", "daft_extension/*.py"] | |
341 | "IPython.lib.tests" = ["*.wav"] |
|
341 | "IPython.lib.tests" = ["*.wav"] | |
342 | "IPython.testing.plugin" = ["*.txt"] |
|
342 | "IPython.testing.plugin" = ["*.txt"] | |
343 |
|
343 | |||
344 | [tool.setuptools.dynamic] |
|
344 | [tool.setuptools.dynamic] | |
345 | version = { attr = "IPython.core.release.__version__" } |
|
345 | version = { attr = "IPython.core.release.__version__" } | |
346 |
|
346 | |||
347 | [tool.coverage.run] |
|
347 | [tool.coverage.run] | |
348 | omit = [ |
|
348 | omit = [ | |
349 | # omit everything in /tmp as we run tempfile |
|
349 | # omit everything in /tmp as we run tempfile | |
350 | "/tmp/*", |
|
350 | "/tmp/*", | |
351 | ] |
|
351 | ] | |
352 |
|
352 | |||
353 | [tool.ruff.lint] |
|
353 | [tool.ruff.lint] | |
354 | extend-select = [ |
|
354 | extend-select = [ | |
355 | # "B", # flake8-bugbear |
|
355 | # "B", # flake8-bugbear | |
356 | # "I", # isort |
|
356 | # "I", # isort | |
357 | # that will be a problem for pytest fixture unless you swap with the usefixture decorator https://docs.pytest.org/en/7.1.x/how-to/fixtures.html#use-fixtures-in-classes-and-modules-with-usefixtures |
|
357 | # that will be a problem for pytest fixture unless you swap with the usefixture decorator https://docs.pytest.org/en/7.1.x/how-to/fixtures.html#use-fixtures-in-classes-and-modules-with-usefixtures | |
358 | # "ARG", # flake8-unused-arguments |
|
358 | # "ARG", # flake8-unused-arguments | |
359 | # "C4", # flake8-comprehensions |
|
359 | # "C4", # flake8-comprehensions | |
360 | # "EM", # flake8-errmsg |
|
360 | # "EM", # flake8-errmsg | |
361 | # "ICN", # flake8-import-conventions |
|
361 | # "ICN", # flake8-import-conventions | |
362 | # "G", # flake8-logging-format |
|
362 | # "G", # flake8-logging-format | |
363 | # "PGH", # pygrep-hooks |
|
363 | # "PGH", # pygrep-hooks | |
364 | # "PIE", # flake8-pie |
|
364 | # "PIE", # flake8-pie | |
365 | # "PL", # pylint |
|
365 | # "PL", # pylint | |
366 | # "PTH", # flake8-use-pathlib |
|
366 | # "PTH", # flake8-use-pathlib | |
367 | # "PT", # flake8-pytest-style |
|
367 | # "PT", # flake8-pytest-style | |
368 | # "RET", # flake8-return |
|
368 | # "RET", # flake8-return | |
369 | # "RUF", # Ruff-specific |
|
369 | # "RUF", # Ruff-specific | |
370 | # "SIM", # flake8-simplify |
|
370 | # "SIM", # flake8-simplify | |
371 | # "T20", # flake8-print |
|
371 | # "T20", # flake8-print | |
372 | # "UP", # pyupgrade |
|
372 | # "UP", # pyupgrade | |
373 | # "YTT", # flake8-2020 |
|
373 | # "YTT", # flake8-2020 | |
374 | # "EXE", # flake8-executable |
|
374 | # "EXE", # flake8-executable | |
375 | # "PYI", # flake8-pyi |
|
375 | # "PYI", # flake8-pyi | |
376 | # "S", # flake8-bandit |
|
376 | # "S", # flake8-bandit | |
377 | ] |
|
377 | ] | |
378 | ignore = [ |
|
378 | ignore = [ | |
379 | # "E501", # E501 Line too long (158 > 100 characters) |
|
379 | # "E501", # E501 Line too long (158 > 100 characters) | |
380 | # "SIM105", # SIM105 Use `contextlib.suppress(...)` |
|
380 | # "SIM105", # SIM105 Use `contextlib.suppress(...)` | |
381 | # "PLR", # Design related pylint codes |
|
381 | # "PLR", # Design related pylint codes | |
382 | # "S101", # Use of `assert` detected |
|
382 | # "S101", # Use of `assert` detected | |
|
383 | "E712", # 1 | |||
|
384 | "E713", # 1 | |||
|
385 | "E902", # 2 | |||
|
386 | "E702", # 3 | |||
|
387 | "E721", # 3 | |||
|
388 | "E401", # 5 | |||
|
389 | "E711", # 14 Comparison to `None` should be `cond is None` | |||
|
390 | "E701", # 19 Multiple statements on one line (colon) | |||
|
391 | "E741", # 25 Ambiguous variable name: `<one letter>` | |||
|
392 | "E731", # 27 Do not assign a `lambda` expression, use a `def` | |||
|
393 | "E402", # 28 Module level import not at top of file | |||
|
394 | "E722", # 75 Do not use bare `except` | |||
|
395 | "F523", # 1 | |||
|
396 | "F811", # 3 | |||
|
397 | "F403", # 7 | |||
|
398 | "F841", # 38 Local variable `...` is assigned to but never used | |||
|
399 | "F401", # 69 imported but unused | |||
|
400 | "F821", # 624 F821 Undefined name | |||
383 | ] |
|
401 | ] | |
384 | unfixable = [ |
|
402 | unfixable = [ | |
385 | # Don't touch print statements |
|
403 | # Don't touch print statements | |
386 | "T201", |
|
404 | "T201", | |
387 | # Don't touch noqa lines |
|
405 | # Don't touch noqa lines | |
388 | "RUF100", |
|
406 | "RUF100", | |
389 | ] |
|
407 | ] | |
390 |
|
408 | |||
391 | [tool.ruff] |
|
409 | [tool.ruff] | |
392 | extend-exclude = ["tests"] |
|
410 | extend-exclude = ["tests"] |
General Comments 0
You need to be logged in to leave comments.
Login now