This commit is contained in:
litagin02
2024-03-12 21:47:59 +09:00
parent 6e4dcf0232
commit 69225a3e13
9 changed files with 25 additions and 7 deletions

View File

@@ -72,6 +72,23 @@ cov = [
"cov-report",
]
[tool.hatch.envs.style]
detached = true
dependencies = [
"black",
"isort",
]
[tool.hatch.envs.style.scripts]
check = [
"black --check --diff .",
"isort --check-only --diff --profile black --gitignore --lai 2 .",
]
fmt = [
"black .",
"isort --profile black --gitignore --lai 2 .",
"check",
]
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10", "3.11"]