Skip to content

Commit 93257a2

Browse files
29: Fixed version checks (#59)
1 parent 4b15421 commit 93257a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exasol/toolbox/nox/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _pyupgrade(session: Session, files: Iterable[str]) -> None:
9494

9595

9696
def _version(session: Session, mode: Mode, version_file: Path) -> None:
97-
command = ["poetry", "run", "version-check", "--fix"]
97+
command = ["poetry", "run", "version-check"]
9898
command = command if mode == Mode.Check else command + ["--fix"]
9999
session.run(*command, f"{version_file}")
100100

exasol/toolbox/pre_commit_hooks/package_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def version_from_poetry() -> Version:
6666
if not poetry:
6767
raise CommitHookError("Couldn't find poetry executable")
6868

69-
result = subprocess.run([poetry, "version"], capture_output=True)
69+
result = subprocess.run([poetry, "version", "--no-ansi"], capture_output=True)
7070
version = result.stdout.decode().split()[1]
7171
return version_from_string(version)
7272

0 commit comments

Comments
 (0)