From ac241d54cbbb6a266932e1a9b89677215305f09f Mon Sep 17 00:00:00 2001 From: janbjorge Date: Thu, 1 Feb 2024 13:56:08 +0100 Subject: [PATCH] CLN: Remove termcolor dependency (#444) --- pyproject.toml | 1 - tests/conftest.py | 10 ++-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9d3bab584..e122666ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,7 +58,6 @@ dev = [ "pytest", "rstcheck", "ruff", - "termcolor", "types-PyYAML", ] docs = [ diff --git a/tests/conftest.py b/tests/conftest.py index c478901d1..962399d5e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -16,7 +16,6 @@ import yaml from fmu.config import utilities as ut from fmu.dataio.dataio import ExportData, read_metadata -from termcolor import cprint logger = logging.getLogger(__name__) @@ -28,14 +27,9 @@ def pytest_configure(): if "RMSVER" in os.environ and "INSIDE_RMS" not in os.environ: - cprint(80 * "=", "red", attrs=["blink"]) - cprint( - "You run a RMS python somehow; need to set INSIDE_RMS=0 for pytest:", - "red", - attrs=["blink"], + logging.critical( + "You run a RMS python somehow; need to set INSIDE_RMS=0 for pytest:" ) - cprint("INSIDE_RMS=0 pytest", "red", attrs=["blink"]) - cprint(80 * "=", "red", attrs=["blink"]) @contextlib.contextmanager