2023-09-29 14:04:56 +00:00
|
|
|
[tool.mypy]
|
2024-09-02 15:41:38 +00:00
|
|
|
python_version = "3.12"
|
2023-11-03 12:37:09 +00:00
|
|
|
pretty = true
|
2023-09-29 14:04:56 +00:00
|
|
|
warn_redundant_casts = true
|
|
|
|
disallow_untyped_calls = true
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
no_implicit_optional = true
|
|
|
|
exclude = "clan_cli.nixpkgs"
|
|
|
|
|
|
|
|
[tool.ruff]
|
2023-11-30 12:42:15 +00:00
|
|
|
target-version = "py311"
|
2024-09-02 12:03:47 +00:00
|
|
|
line-length = 88
|
2024-09-02 11:40:15 +00:00
|
|
|
lint.select = [
|
|
|
|
"A",
|
|
|
|
"ANN",
|
2024-09-02 12:03:47 +00:00
|
|
|
"ASYNC",
|
2024-09-02 11:40:15 +00:00
|
|
|
"B",
|
|
|
|
"C4",
|
2024-09-02 12:03:47 +00:00
|
|
|
"DTZ",
|
2024-09-02 11:40:15 +00:00
|
|
|
"E",
|
2024-09-02 12:03:47 +00:00
|
|
|
"EM",
|
2024-09-02 11:40:15 +00:00
|
|
|
"F",
|
2024-09-02 13:41:20 +00:00
|
|
|
"FA",
|
2024-09-02 11:40:15 +00:00
|
|
|
"I",
|
2024-09-02 13:41:20 +00:00
|
|
|
"ICN",
|
|
|
|
"ISC",
|
|
|
|
"LOG",
|
2024-09-02 11:40:15 +00:00
|
|
|
"N",
|
2024-09-02 13:41:20 +00:00
|
|
|
"PIE",
|
2024-09-02 13:47:17 +00:00
|
|
|
"PT",
|
2024-09-02 16:25:17 +00:00
|
|
|
"PTH",
|
2024-09-02 13:41:20 +00:00
|
|
|
"PYI",
|
2024-09-02 13:58:49 +00:00
|
|
|
"Q",
|
|
|
|
"RET",
|
|
|
|
"RSE",
|
2024-09-02 11:40:15 +00:00
|
|
|
"RUF",
|
2024-09-02 14:29:50 +00:00
|
|
|
"SIM",
|
2024-09-02 14:22:10 +00:00
|
|
|
"SLF",
|
2024-09-02 14:25:11 +00:00
|
|
|
"SLOT",
|
2024-09-02 12:03:47 +00:00
|
|
|
"T10",
|
2024-09-02 11:40:15 +00:00
|
|
|
"TID",
|
2024-09-03 15:56:59 +00:00
|
|
|
"TRY",
|
2024-09-02 11:40:15 +00:00
|
|
|
"U",
|
2024-09-02 12:03:47 +00:00
|
|
|
"YTT",
|
2024-09-02 11:40:15 +00:00
|
|
|
]
|
2024-09-02 14:29:50 +00:00
|
|
|
lint.ignore = [
|
|
|
|
"A003",
|
|
|
|
"ANN101",
|
|
|
|
"ANN401",
|
|
|
|
"E402",
|
|
|
|
"E501",
|
|
|
|
"E731",
|
|
|
|
"PT001",
|
|
|
|
"PT023",
|
|
|
|
"RET504",
|
|
|
|
"SIM102",
|
|
|
|
"SIM108",
|
|
|
|
"SIM112",
|
2024-09-03 15:56:59 +00:00
|
|
|
"ISC001",
|
2024-09-02 14:29:50 +00:00
|
|
|
]
|