-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpyproject.toml
56 lines (48 loc) · 986 Bytes
/
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
[tool.black]
line-length = 110
target-version = ["py311"]
[tool.isort]
profile = "black"
line_length = 110
known_first_party = ["lsst"]
[tool.ruff]
line-length = 110
target-version = "py311"
exclude = [
"__init__.py",
]
[tool.ruff.lint]
ignore = [
"N802",
"N803",
"N806",
"N812",
"N815",
"N816",
"N999",
]
select = [
"E", # pycodestyle
"F", # pyflakes
"N", # pep8-naming
"W", # pycodestyle
"I", # isort
"RUF022", # Sort __all__
"C4", # comprehensions
"B", # bugbear
]
extend-select = [
"RUF100", # Warn about unused noqa
]
[tool.lint.isort]
known-first-party = ["lsst"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 79
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
addopts = "--import-mode=importlib" # Recommended as best practice
[tool.ruff.format]
docstring-code-format = true
# ruff format does not seem to take indenting into account.
docstring-code-line-length = 69