forked from jupyter-server/jupyter_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
108 lines (93 loc) · 2.67 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
[build-system]
requires = ["jupyter_packaging~=0.9", "pre-commit"]
build-backend = "jupyter_packaging.build_api"
[tool.jupyter-packaging.builder]
factory = "jupyter_packaging.npm_builder"
[tool.check-manifest]
ignore = ["tbump.toml", ".*", "*.yml", "package-lock.json", "bootstrap*", "conftest.py"]
[tool.pytest.ini_options]
addopts = "-raXs --durations 10 --color=yes --doctest-modules"
testpaths = [
"tests/"
]
timeout = 300
# Restore this setting to debug failures
# timeout_method = "thread"
filterwarnings = [
"error",
"module:make_current is deprecated:DeprecationWarning",
"module:clear_current is deprecated:DeprecationWarning",
"module:There is no current event loop:DeprecationWarning",
"ignore:Passing a schema to Validator.iter_errors:DeprecationWarning",
"ignore:unclosed <socket.socket:ResourceWarning",
"ignore:unclosed event loop:ResourceWarning",
"ignore:run_pre_save_hook is deprecated:DeprecationWarning",
"module:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning",
]
[tool.jupyter-releaser]
skip = ["check-links"]
[tool.jupyter-releaser.options]
post-version-spec = "dev"
[tool.tbump.version]
current = "1.25.0.dev0"
regex = '''
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[[tool.tbump.file]]
src = "jupyter_server/_version.py"
version_template = '({major}, {minor}, {patch}, "{channel}", "{release}")'
[[tool.tbump.file]]
src = "docs/source/conf.py"
version_template = "{major}.{minor}.{patch}{channel}{release}"
[[tool.tbump.field]]
name = "channel"
default = ""
[[tool.tbump.field]]
name = "release"
default = ""
[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
pretty = true
show_error_context = true
show_error_codes = true
strict_equality = true
warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true
exclude = [
"examples/simple/setup.py",
]
[[tool.mypy.overrides]]
module = [
"traitlets",
"traitlets.config",
"traitlets.config.application",
"traitlets.config.configurable",
"traitlets.tests.utils",
"traitlets.utils.importstring",
"traitlets.traitlets",
"traitlets.utils.descriptions",
"jupyter_core",
"jupyter_core.application",
"jupyter_core.paths",
"jupyter_core.utils",
"nbconvert.exporters",
"nbconvert.exporters.base",
"nbformat",
"nbformat.sign",
"nbformat.v4",
"pysqlite2",
"_frozen_importlib_external",
"send2trash",
"terminado",
"websocket"
]
ignore_missing_imports = true
[tool.check-wheel-contents]
ignore = ["W002"]