-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (53 loc) · 985 Bytes
/
pyproject.toml
File metadata and controls
60 lines (53 loc) · 985 Bytes
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
[tool.black]
line-length = 110
target-version = ["py312"]
[tool.isort]
profile = "black"
line_length = 110
[tool.ruff]
line-length = 110
target-version = "py312"
exclude = [
"__init__.py",
"lex.py",
"yacc.py",
]
[tool.ruff.lint]
ignore = [
"N802",
"N803",
"N806",
"N812",
"N815",
"N816",
"N999",
"D107",
"D105",
"D102",
"D104",
"D100",
"D200",
"D205",
"D400",
"UP007", # Allow UNION in type annotation
"UP040", # Allow TypeAlias (until we can safely drop python < 3.12)
]
select = [
"E", # pycodestyle
"F", # pycodestyle
"N", # pep8-naming
"W", # pycodestyle
"D", # pydocstyle
"UP", # pyupgrade
"C4", # list comprehensions
"I", # isort
"B", # bugbear
]
[tool.ruff.lint.pycodestyle]
max-doc-length = 79
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
known-first-party = ["lsst"]
[tool.ruff.format]
docstring-code-format = true