/
pyproject.toml
44 lines (38 loc) · 1.11 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
[tool.ruff]
line-length = 120
target-version = 'py311'
[tool.ruff.format]
quote-style = 'single' # Prefer single quotes, except for triple quotes strings
[tool.ruff.lint]
select = ['ALL'] # https://docs.astral.sh/ruff/rules/
ignore = [
'CPY001', # Do not require copyright notices
'D213', # Start multi-line docstring on first line
'D203', # Had to disable one of these (D211)
'D400', # Do not require . at end of first line in docstring
'D415', # Do not require ./!/? at end of first line in docstring
'EM102', # Allow f-string in exception message
'SLF001', # Allow accessing private attributes
'TRY003', # Allow long messages in exceptions
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
[tool.ruff.lint.isort]
lines-between-types = 1
section-order = [
'future',
'standard-library',
'third-party',
'pelican',
'first-party',
'local-folder',
]
[tool.ruff.lint.isort.sections]
pelican = ['pelican']
[tool.mypy]
ignore_missing_imports = true
show_column_numbers = true
show_error_codes = true
strict = true
warn_return_any = true
warn_unused_configs = true