pyproject.toml: add flake8, black as dependencies
This commit is contained in:
parent
eab920abeb
commit
be91215cc4
@ -40,10 +40,19 @@ path = "bitmask/__about__.py"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"pytest",
|
"pytest",
|
||||||
"pytest-cov",
|
"pytest-cov",
|
||||||
|
"flake8",
|
||||||
|
"black",
|
||||||
]
|
]
|
||||||
[tool.hatch.envs.default.scripts]
|
[tool.hatch.envs.default.scripts]
|
||||||
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=bitmask --cov=tests"
|
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=bitmask --cov=tests"
|
||||||
no-cov = "cov --no-cov"
|
no-cov = "cov --no-cov"
|
||||||
|
style = [
|
||||||
|
"flake8 {args:.}",
|
||||||
|
"black --check --diff {args:.}",
|
||||||
|
]
|
||||||
|
fmt = [
|
||||||
|
"black {args:.}",
|
||||||
|
]
|
||||||
|
|
||||||
[[tool.hatch.envs.test.matrix]]
|
[[tool.hatch.envs.test.matrix]]
|
||||||
python = ["37", "38", "39", "310"]
|
python = ["37", "38", "39", "310"]
|
||||||
|
Loading…
Reference in New Issue
Block a user