Skip to content

Commit

Permalink
Add shortcut for running flake8 and pytest.
Browse files Browse the repository at this point in the history
  • Loading branch information
andialbrecht committed Jul 12, 2024
1 parent bf74d8b commit 974617d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dependencies = [
"flake8",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
unittest = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = [
"- coverage combine",
Expand All @@ -71,6 +71,7 @@ cov = [
"cov-report",
]
check = "flake8 sqlparse/"
test = ["check", "unittest"]

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
Expand Down

0 comments on commit 974617d

Please sign in to comment.