From cf43e1806c2ee8a7cb197f903338bc05e8c4f82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Wed, 21 Feb 2024 02:09:17 +0300 Subject: [PATCH] color --- json-schema-check/action.yaml | 2 -- json-schema-check/validate_json_schemas.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/json-schema-check/action.yaml b/json-schema-check/action.yaml index 92ce1ae1..50a6b9ae 100644 --- a/json-schema-check/action.yaml +++ b/json-schema-check/action.yaml @@ -9,7 +9,5 @@ runs: shell: bash - name: Validate schemas - env: - FORCE_COLOR: "1" # Required for colorful output run: python ${GITHUB_ACTION_PATH}/validate_json_schemas.py shell: bash diff --git a/json-schema-check/validate_json_schemas.py b/json-schema-check/validate_json_schemas.py index 22bcc68b..529acf58 100644 --- a/json-schema-check/validate_json_schemas.py +++ b/json-schema-check/validate_json_schemas.py @@ -3,8 +3,7 @@ import glob import colorama -# Initialize colorama to auto-reset colors -colorama.init(autoreset=True) +colorama.init(wrap=False, strip=False) def main(): validation_failed = False