|
|
|
|
@ -146,18 +146,18 @@ dependencies = [
|
|
|
|
|
"black[jupyter]==22.10.0",
|
|
|
|
|
"mdformat>0.7",
|
|
|
|
|
"mdformat-gfm>=0.3.5",
|
|
|
|
|
"ruff==0.0.189"
|
|
|
|
|
"ruff==0.0.237"
|
|
|
|
|
]
|
|
|
|
|
detached = true
|
|
|
|
|
[tool.hatch.envs.lint.scripts]
|
|
|
|
|
style = [
|
|
|
|
|
"ruff {args:notebook tests ui-tests}",
|
|
|
|
|
"ruff {args:.}",
|
|
|
|
|
"black --check --diff {args:.}",
|
|
|
|
|
"mdformat --check {args:CHANGELOG.md}"
|
|
|
|
|
]
|
|
|
|
|
fmt = [
|
|
|
|
|
"black {args:.}",
|
|
|
|
|
"ruff --fix {args:notebook}",
|
|
|
|
|
"ruff --fix {args:.}",
|
|
|
|
|
"mdformat {args:CHANGELOG.md}"
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
@ -252,8 +252,9 @@ skip-string-normalization = true
|
|
|
|
|
target-version = "py37"
|
|
|
|
|
line-length = 100
|
|
|
|
|
select = [
|
|
|
|
|
"A", "B", "C", "E", "F", "FBT", "I", "N", "Q", "RUF", "S", "T",
|
|
|
|
|
"UP", "W", "YTT",
|
|
|
|
|
"A", "B", "C", "DTZ", "E", "EM", "F", "FBT", "I", "ICN", "ISC", "N",
|
|
|
|
|
"PLC", "PLE", "PLR", "PLW", "Q", "RUF", "S", "SIM", "T", "TID", "UP",
|
|
|
|
|
"W", "YTT",
|
|
|
|
|
]
|
|
|
|
|
ignore = [
|
|
|
|
|
# Q000 Single quotes found but double quotes preferred
|
|
|
|
|
@ -267,7 +268,8 @@ ignore = [
|
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
|
# S101 Use of `assert` detected
|
|
|
|
|
# F841 Local variable `foo` is assigned to but never used
|
|
|
|
|
"tests/*" = ["S101", "F841"]
|
|
|
|
|
# PLR2004 Magic value used in comparison
|
|
|
|
|
"tests/*" = ["S101", "F841", "PLR2004"]
|
|
|
|
|
|
|
|
|
|
[tool.interrogate]
|
|
|
|
|
ignore-init-module=true
|
|
|
|
|
|