Linty bits

This commit is contained in:
2023-10-20 08:22:16 -04:00
parent b672131cfc
commit accf0d0c2b
3 changed files with 16 additions and 11 deletions
+5 -1
View File
@@ -61,7 +61,7 @@ dependencies = [
"ruff>=0.0.243",
]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:src/leetcode tests}"
typing = "mypy --install-types --non-interactive {args:.}"
style = [
"ruff {args:.}",
"black --check --diff {args:.}",
@@ -120,6 +120,10 @@ ignore = [
"S105", "S106", "S107",
# Ignore complexity
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",
# Allow print func
"T201",
# Allow assert statements
"S101",
]
unfixable = [
# Don't touch unused imports