-
Notifications
You must be signed in to change notification settings - Fork 307
/
pyproject.toml
99 lines (80 loc) · 2.55 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
[project]
name = "jupyterlite-root"
version = "0.3.0a0"
[tool.jupyter-releaser]
skip = [ "build-python", "check-links", "check-python",]
[tool.jupyter-releaser.hooks]
before-bump-version = [ "python -m pip install jupyter-releaser -r requirements-build.txt -r requirements-lint.txt", "jlpm", ]
after-bump-version = [ "doit repo:integrity", "jlpm lint", "jlpm",]
before-build-npm = [ "doit build",]
after-check-npm = [ "doit dist", "rm dist/jupyterlite-app-*.tgz",]
[tool.jupyter-releaser.options]
version-cmd = "python scripts/bump-version.py --force"
[tool.check-wheel-contents]
ignore = ["W002"]
[tool.ruff]
target-version = "py38"
line-length = 100
extend-include = ["*.ipynb"]
select = [
"A", "B", "C", "DTZ", "E", "EM", "F", "FBT", "I", "ICN", "N",
"PLC", "PLE", "PLR", "PLW", "Q", "RUF", "S", "SIM", "T", "TID", "UP",
"W", "YTT",
]
ignore = [
# EM101 [*] Exception must not use a string literal, assign to variable first
# EM102 [*] Exception must not use an f-string literal, assign to variable first
"EM101", "EM102",
# FBT001 Boolean positional arg in function definition
"FBT001", "FBT002", "FBT003",
# S101 Use of `assert` detected
"S101",
# T201 `print` found
"T201",
# T203 `print` found
"T203",
# C408 Unnecessary `dict` call (rewrite as a literal)
"C408", "C416",
# RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
"RUF012",
]
[tool.ruff.lint]
exclude = ["*.ipynb"]
[tool.ruff.lint.per-file-ignores]
# A001 Variable `copyright` is shadowing a Python builtin
# S603 `subprocess` call: check for execution of untrusted input
# S607 Starting a process with a partial executable path
"docs/conf.py" = ["A001", "S603", "S607"]
"**/conftest.py" = ["S603", "S607"]
# TID252 [*] Relative imports from parent modules are banned
"py/*" = ["TID252"]
# S101 Use of `assert` detected
"**/tests/*" = ["S101", "PLR2004"]
# E501 Line too long
"ui-tests/build.py" = ["E501", "S602"]
[tool.tbump.version]
current = "0.3.0a0"
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 = "package.json"
[[tool.tbump.file]]
src = "pyproject.toml"
[[tool.tbump.file]]
src = "py/jupyterlite/jupyterlite/__init__.py"
[[tool.tbump.file]]
src = "py/jupyterlite/pyproject.toml"
search = "jupyterlite-core >={current_version}"
[[tool.tbump.file]]
src = "py/jupyterlite-core/jupyterlite_core/__init__.py"
[[tool.tbump.field]]
name = "channel"
default = ""
[[tool.tbump.field]]
name = "release"
default = ""