diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7facd39..07afde1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,7 +29,7 @@ pytest: <<: *pull_cache stage: test script: - - make tests + - make test djlint: <<: *pull_cache diff --git a/Makefile b/Makefile index f98b938..94757f4 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ ORANGE=\033[0;33m BLUE=\033[0;34m NC=\033[0m # No Color -.PHONY: tests djlint pylint +.PHONY: test djlint pylint venv: ## Create the venv python3 -m venv venv @@ -19,7 +19,7 @@ public/mermaid.min.js: curl -sL $$(grep mermaid.min.js public/search.html | cut -f 2 -d '"') --output public/mermaid.min.js cog: ## Run cog, to integrate the CLI options to the docs. venv/bin/cog -r docs/*.md -tests: venv ## Run the tests +test: venv ## Run the tests venv/bin/pytest ruff: venv venv/bin/ruff format --check . diff --git a/docs/developer/tests.md b/docs/developer/tests.md index a7d9f1a..2d119bc 100644 --- a/docs/developer/tests.md +++ b/docs/developer/tests.md @@ -4,7 +4,7 @@ To launch the tests suite: ```bash -make tests +make test ``` ## Linting diff --git a/pyproject.toml b/pyproject.toml index 9f90093..f5e85a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,7 @@ dev = [ "respx>=0.20,<1", "ruff==0.1.5,<1", "sphinx-autobuild", + "build>=1.2.1" ] docs = [ "cogapp",