From fe275d3177a12fc66b16ef41f962ba74536b0223 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Tue, 7 Dec 2021 13:05:39 -0800 Subject: [PATCH] Use python flavor --- .github/workflows/CI.yml | 2 +- tools/closest_color.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d560b12..eb8541c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -60,6 +60,6 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: megalinter/megalinter/flavors/documentation@v5 + - uses: megalinter/megalinter/flavors/python@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/tools/closest_color.py b/tools/closest_color.py index fa699db..1417129 100644 --- a/tools/closest_color.py +++ b/tools/closest_color.py @@ -33,7 +33,7 @@ def hex_to_lab(hex): def closest_tango_color(hex): input_color = hex_to_lab(hex) - min_delta_e = 100000000 + min_delta_e = sys.maxsize closest_color_name = None for color_name, color_hex in TANGO_COLORS.items():