-
Notifications
You must be signed in to change notification settings - Fork 23
/
pyproject.toml
59 lines (53 loc) · 2.04 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
[tool.mypy]
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
warn_unreachable = true
[tool.ruff]
indent-width = 4
line-length = 120
target-version = "py37"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`
"COM812", # Missing trailing comma in Python 3.6+
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"G004", # Logging statement uses string formatting
"D211", # No blank lines before class docstring
"D213", # Multi-line docstring summary should start at the second line
"FBT001", # Boolean positional arg in function call
"FBT002", # Boolean positional arg in function definition
"ISC001", # Implicit string concatenation
"PTH123", # open() should be replaced by Path.open()
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"PLR0913", # Too many arguments in function definition
]
fixable = ["ALL"]
unfixable = ["FBT002"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"**/{tests}/*" = [
"ARG001", # Unused function argument
"E722", # Do not use bare except
"INP001", # File is part of an implicit namespace package
"PLR2004", # Magic value used in comparison
"PT011", # pytest.raises() should be used as a context manager
"S101", # Use of assert detected
"SLF001", # Private member accessed
]
[tool.pytest.ini_options]
asyncio_mode = "auto"