mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-22 19:41:36 +03:00
Use python flavor
This commit is contained in:
parent
1af6bf39c2
commit
fe275d3177
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
@ -60,6 +60,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: megalinter/megalinter/flavors/documentation@v5
|
- uses: megalinter/megalinter/flavors/python@v5
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -33,7 +33,7 @@ def hex_to_lab(hex):
|
|||||||
def closest_tango_color(hex):
|
def closest_tango_color(hex):
|
||||||
input_color = hex_to_lab(hex)
|
input_color = hex_to_lab(hex)
|
||||||
|
|
||||||
min_delta_e = 100000000
|
min_delta_e = sys.maxsize
|
||||||
closest_color_name = None
|
closest_color_name = None
|
||||||
|
|
||||||
for color_name, color_hex in TANGO_COLORS.items():
|
for color_name, color_hex in TANGO_COLORS.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user