-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
144 lines (129 loc) · 2.47 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[project]
dependencies = [
"ipywidgets",
]
name = "compwa-demo"
requires-python = ">=3.12"
version = "0.0.0"
[dependency-groups]
dev = [
"ruff",
{include-group = "jupyter"},
{include-group = "test"},
]
jupyter = [
"jupyterlab",
"jupyterlab-code-formatter",
"jupyterlab-git",
"jupyterlab-lsp",
"jupyterlab-myst",
"python-lsp-ruff",
"python-lsp-server[rope]",
{include-group = "notebooks"},
]
notebooks = ["pyproject-local-kernel"]
test = [
"nbmake",
{include-group = "notebooks"},
]
[tool.pytest.ini_options]
addopts = [
"--color=yes",
"--durations=0",
"--nbmake",
]
filterwarnings = [
"ignore:Passing a schema to Validator.iter_errors is deprecated.*:DeprecationWarning",
]
[tool.ruff]
extend-include = ["*.ipynb"]
preview = true
show-fixes = true
[tool.ruff.format]
docstring-code-format = true
line-ending = "lf"
[tool.ruff.lint]
ignore = [
"ANN401",
"COM812",
"CPY001",
"D101",
"D102",
"D103",
"D105",
"D107",
"D203",
"D213",
"D407",
"D416",
"DOC",
"E501",
"FURB101",
"FURB103",
"FURB140",
"G004",
"ISC001",
"PLW1514",
"PT001",
"PTH",
"SIM108",
]
select = ["ALL"]
task-tags = ["cspell"]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["display"]
[tool.ruff.lint.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = [
"ANN",
"B015",
"B018",
"C90",
"D",
"E303",
"E402",
"E703",
"N806",
"N816",
"PLR09",
"PLR2004",
"PLW0602",
"PLW0603",
"S101",
"T20",
"TC00",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tomlsort]
all = false
ignore_case = true
in_place = true
sort_first = [
"project",
"tool.tox.env_run_base",
]
spaces_indent_inline_array = 4
trailing_comma_inline_array = true
[tool.tox]
env_list = [
"nb",
"sty",
]
no_package = true
requires = ["tox>=4.21.0"]
skip_install = true
skip_missing_interpreters = true
[tool.tox.env_run_base]
pass_env = ["*"]
[tool.tox.env.nb]
allowlist_externals = ["pytest"]
commands = [["pytest", {replace = "posargs", extend = true}]]
description = "Run all notebooks with pytest"
[tool.tox.env.sty]
allowlist_externals = ["pre-commit"]
commands = [["pre-commit", "run", "--all-files", {replace = "posargs", extend = true}]]
description = "Perform all linting, formatting, and spelling checks"