run test lint

This commit is contained in:
Waylon Walker 2022-09-01 15:30:18 -05:00
parent 24bcf58b42
commit 76ba3caa33
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
5 changed files with 41 additions and 3 deletions

View file

@ -26,6 +26,17 @@ classifiers = [
dependencies = []
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"black",
"isort",
"seed-isort-config",
"flake8",
"pytest",
"pytest-cov",
"pytest-mock",
]
[project.urls]
Documentation = "https://github.com/unknown/hatch-version-action-example#readme"
Issues = "https://github.com/unknown/hatch-version-action-example/issues"
@ -36,12 +47,27 @@ path = "hatch_version_action_example/__about__.py"
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-cov",
"black",
"isort",
"seed-isort-config",
"flake8",
"pytest",
"pytest-cov",
"pytest-mock",
]
[tool.hatch.envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=hatch_version_action_example --cov=tests"
no-cov = "cov --no-cov"
lint = "flake8 hatch_version_action_example"
format = "black --check hatch_version_action_example"
sort_imports = "isort hatch_version_action_example"
test-lint = [
"lint",
"format",
"seed-isort-config",
"sort-imports",
"cov",
]
[[tool.hatch.envs.test.matrix]]
python = ["37", "38", "39", "310", "311"]
@ -59,3 +85,7 @@ exclude_lines = [
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.isort]
profile = "black"
known_third_party = []