From e60cb99146c507faeea9460df097934c70418145 Mon Sep 17 00:00:00 2001 From: Alessandro De Maria Date: Sun, 1 Sep 2024 16:05:13 +0000 Subject: [PATCH] fix tests --- .pre-commit-config.yaml | 7 +++++++ Makefile | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a99ef32e7..379799425 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,3 +17,10 @@ repos: - id: debug-statements - id: end-of-file-fixer - id: check-merge-conflict + - repo: https://github.com/python-poetry/poetry + rev: '1.8.0' + hooks: + - id: poetry-check + - id: poetry-lock + entry: env PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry lock + - id: poetry-install diff --git a/Makefile b/Makefile index e11a18545..a0bd1912d 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ all: clean package .PHONY: pre-requisites pre-requisites: @echo ----- Installing pre-requisites ----- - poetry install + poetry install --with dev --with docs --with test .PHONY: lint lint: @@ -15,7 +15,7 @@ lint: .PHONY: install poetry with pipx install_poetry: @echo ----- Installing poetry with pipx ----- - pipx install poetry + which poetry || pipx install poetry .PHONY: test test: pre-requisites lint test_python test_docker test_coverage test_formatting