pyproject.toml: add flake8, black as dependencies

This commit is contained in:
dogeystamp 2022-08-02 18:09:53 -04:00
parent eab920abeb
commit be91215cc4
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -40,10 +40,19 @@ path = "bitmask/__about__.py"
dependencies = [
"pytest",
"pytest-cov",
"flake8",
"black",
]
[tool.hatch.envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=bitmask --cov=tests"
no-cov = "cov --no-cov"
style = [
"flake8 {args:.}",
"black --check --diff {args:.}",
]
fmt = [
"black {args:.}",
]
[[tool.hatch.envs.test.matrix]]
python = ["37", "38", "39", "310"]