Skip to content

Commit b095b3d

Browse files
committed
mypy and ruff config
1 parent 95431dd commit b095b3d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,17 @@ filterwarnings = ["error"]
7272
testpaths = [
7373
"tests",
7474
]
75+
76+
[tool.mypy]
77+
strict=true
78+
warn_unreachable=true
79+
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
80+
81+
[tool.ruff]
82+
83+
[tool.ruff.lint]
84+
extend-select = [
85+
"UP", # pyupgrade
86+
"I", # isort
87+
"B", # flake8-bugbear
88+
]

0 commit comments

Comments
 (0)