2023-01-16 16:08:54 +03:00
|
|
|
[tool.ruff]
|
2023-11-29 10:13:31 +03:00
|
|
|
target-version = "py311"
|
2023-01-16 16:08:54 +03:00
|
|
|
line-length = 88
|
2023-11-29 10:13:31 +03:00
|
|
|
select = ["ALL"]
|
|
|
|
ignore = [
|
|
|
|
# pydocstyle
|
|
|
|
"D",
|
|
|
|
# Missing type annotation for `self` in method
|
|
|
|
"ANN101",
|
|
|
|
# Trailing comma missing
|
|
|
|
"COM812",
|
|
|
|
# Unnecessary `dict` call (rewrite as a literal)
|
|
|
|
"C408",
|
|
|
|
# Boolean-typed positional argument in function definition
|
|
|
|
"FBT001",
|
|
|
|
# Logging statement uses f-string
|
|
|
|
"G004",
|
|
|
|
# disabled on ruff's recommendation as causes problems with the formatter
|
|
|
|
"ISC001",
|
|
|
|
# Use of `assert` detected
|
|
|
|
"S101",
|
|
|
|
# `subprocess` call: check for execution of untrusted input
|
|
|
|
"S603",
|
|
|
|
]
|
2023-01-16 16:08:54 +03:00
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
python_version = "3.10"
|
|
|
|
warn_redundant_casts = true
|
|
|
|
disallow_untyped_calls = true
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
no_implicit_optional = true
|
|
|
|
|
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
module = "setuptools.*"
|
|
|
|
ignore_missing_imports = true
|
|
|
|
|
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
module = "pytest.*"
|
|
|
|
ignore_missing_imports = true
|