From 974617de574c29967e48a67b965cb74112af916f Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Fri, 12 Jul 2024 13:47:08 +0200 Subject: [PATCH] Add shortcut for running flake8 and pytest. --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9a438a6f..f573301e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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"]