##// END OF EJS Templates
Backport PR #14020 on branch 8.12.x (chore: move pytest configuration to `pyproject.toml`) (#14044)...
Matthias Bussonnier -
r28256:31cfc61a merge
parent child Browse files
Show More
@@ -1,48 +1,46 b''
1 1 include README.rst
2 2 include COPYING.rst
3 3 include LICENSE
4 4 include setupbase.py
5 5 include MANIFEST.in
6 include pytest.ini
7 6 include py.typed
8 include mypy.ini
9 7 include .mailmap
10 8 include .flake8
11 9 include .pre-commit-config.yaml
12 10 include long_description.rst
13 11
14 12 recursive-exclude tools *
15 13 exclude tools
16 14 exclude CONTRIBUTING.md
17 15 exclude .editorconfig
18 16 exclude SECURITY.md
19 17
20 18 graft scripts
21 19
22 20 # Load main dir but exclude things we don't want in the distro
23 21 graft IPython
24 22
25 23 # Documentation
26 24 graft docs
27 25 exclude docs/\#*
28 26 exclude docs/man/*.1.gz
29 27
30 28 exclude .git-blame-ignore-revs
31 29
32 30 # Examples
33 31 graft examples
34 32
35 33 # docs subdirs we want to skip
36 34 prune docs/build
37 35 prune docs/gh-pages
38 36 prune docs/dist
39 37
40 38 # Patterns to exclude from any directory
41 39 global-exclude *~
42 40 global-exclude *.flc
43 41 global-exclude *.yml
44 42 global-exclude *.pyc
45 43 global-exclude *.pyo
46 44 global-exclude .dircopy.log
47 45 global-exclude .git
48 46 global-exclude .ipynb_checkpoints
@@ -1,32 +1,81 b''
1 1 [build-system]
2 2 requires = ["setuptools >= 51.0.0"]
3 3 build-backend = "setuptools.build_meta"
4
4 5 [tool.mypy]
5 6 python_version = 3.8
6 7 ignore_missing_imports = true
7 8 follow_imports = 'silent'
8 9 exclude = [
9 10 'test_\.+\.py',
10 11 'IPython.utils.tests.test_wildcard',
11 12 'testing',
12 13 'tests',
13 14 'PyColorize.py',
14 15 '_process_win32_controller.py',
15 16 'IPython/core/application.py',
16 17 'IPython/core/completerlib.py',
17 18 'IPython/core/displaypub.py',
18 19 'IPython/core/historyapp.py',
19 20 #'IPython/core/interactiveshell.py',
20 21 'IPython/core/magic.py',
21 22 'IPython/core/profileapp.py',
22 23 # 'IPython/core/ultratb.py',
23 24 'IPython/lib/deepreload.py',
24 25 'IPython/lib/pretty.py',
25 26 'IPython/sphinxext/ipython_directive.py',
26 27 'IPython/terminal/ipapp.py',
27 28 'IPython/utils/_process_win32.py',
28 29 'IPython/utils/path.py',
29 30 'IPython/utils/timing.py',
30 31 'IPython/utils/text.py'
31 ]
32 ]
32 33
34 [tool.pytest.ini_options]
35 addopts = [
36 "--durations=10",
37 "-pIPython.testing.plugin.pytest_ipdoctest",
38 "--ipdoctest-modules",
39 "--ignore=docs",
40 "--ignore=examples",
41 "--ignore=htmlcov",
42 "--ignore=ipython_kernel",
43 "--ignore=ipython_parallel",
44 "--ignore=results",
45 "--ignore=tmp",
46 "--ignore=tools",
47 "--ignore=traitlets",
48 "--ignore=IPython/core/tests/daft_extension",
49 "--ignore=IPython/sphinxext",
50 "--ignore=IPython/terminal/pt_inputhooks",
51 "--ignore=IPython/__main__.py",
52 "--ignore=IPython/external/qt_for_kernel.py",
53 "--ignore=IPython/html/widgets/widget_link.py",
54 "--ignore=IPython/html/widgets/widget_output.py",
55 "--ignore=IPython/terminal/console.py",
56 "--ignore=IPython/utils/_process_cli.py",
57 "--ignore=IPython/utils/_process_posix.py",
58 "--ignore=IPython/utils/_process_win32.py",
59 "--ignore=IPython/utils/_process_win32_controller.py",
60 "--ignore=IPython/utils/daemonize.py",
61 "--ignore=IPython/utils/eventful.py",
62 "--ignore=IPython/kernel",
63 "--ignore=IPython/consoleapp.py",
64 "--ignore=IPython/core/inputsplitter.py",
65 "--ignore=IPython/lib/kernel.py",
66 "--ignore=IPython/utils/jsonutil.py",
67 "--ignore=IPython/utils/localinterfaces.py",
68 "--ignore=IPython/utils/log.py",
69 "--ignore=IPython/utils/signatures.py",
70 "--ignore=IPython/utils/traitlets.py",
71 "--ignore=IPython/utils/version.py"
72 ]
73 doctest_optionflags = [
74 "NORMALIZE_WHITESPACE",
75 "ELLIPSIS"
76 ]
77 ipdoctest_optionflags = [
78 "NORMALIZE_WHITESPACE",
79 "ELLIPSIS"
80 ]
81 asyncio_mode = "strict"
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now