-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
143 lines (130 loc) · 2.33 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools"]
[project]
description = "Investigation of symbolic amplitude models for the GlueX experiment"
license = {text = "BSD 3-Clause License"}
name = "gluex-amplitude"
requires-python = ">=3.12"
version = "0.0.0"
[project.readme]
content-type = "text/markdown"
file = "README.md"
[dependency-groups]
dev = [
"ruff",
{include-group = "doc"},
{include-group = "jupyter"},
]
doc = [
"jupyter-book",
{include-group = "notebooks"},
]
jupyter = [
"jupyterlab",
"jupyterlab-code-formatter",
"jupyterlab-git",
"jupyterlab-lsp",
"jupyterlab-myst",
"python-lsp-ruff",
"python-lsp-server[rope]",
{include-group = "notebooks"},
]
notebooks = [
"ampform",
"ipympl",
"ipywidgets",
"matplotlib",
"sympy",
]
[tool.ruff]
extend-include = ["*.ipynb"]
preview = true
show-fixes = true
src = ["src"]
[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.flake8-self]
ignore-names = [
"_global_settings",
"_latex",
"_print",
]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = [
"ANN",
"B018",
"C408",
"C90",
"D",
"E303",
"E703",
"E741",
"N803",
"N806",
"N816",
"PLR09",
"PLR2004",
"PLW0602",
"PLW0603",
"RUF001",
"S101",
"T20",
"TCH00",
]
"**/widget.ipynb" = ["ARG001", "ARG002", "S307"]
"docs/*" = [
"INP001",
"S101",
"S113",
]
"script/*" = ["D100", "INP001"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tomlsort]
all = false
ignore_case = true
in_place = true
sort_first = [
"build-system",
"project",
"tool.setuptools",
"tool.setuptools_scm",
]
spaces_indent_inline_array = 4
trailing_comma_inline_array = true