From 1e8c9902eca4b1b723c6785aaeec7001a758a8da Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Thu, 21 Sep 2023 14:11:31 +0200 Subject: [PATCH] Fix version check in pre-commit hook --- pyproject.toml | 1 - scripts/check_dynamic_versioning.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 51aa1155..d891e398 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -138,7 +138,6 @@ files = [ ] [tool.ruff] -line-length = 100 ignore = [ "E501" ] diff --git a/scripts/check_dynamic_versioning.py b/scripts/check_dynamic_versioning.py index aa90caf2..1e5b98dd 100755 --- a/scripts/check_dynamic_versioning.py +++ b/scripts/check_dynamic_versioning.py @@ -13,7 +13,7 @@ errors = [] - if not pyproject["tool"]["poetry"]["version"]: + if pyproject["tool"]["poetry"]["version"] != "0.0.0": errors.append("Error: tool.poetry.version != 0.0.0") if not pyproject["tool"]["poetry-dynamic-versioning"]["enable"]: errors.append("Error: tool.poetry-dymamic-versioning.enable != true")