fix colors linting
Some checks failed
Test Suite / test (3.12) (push) Successful in 1m27s
Test Suite / test (3.11) (push) Successful in 1m29s
Test Suite / lint (push) Failing after 10s
Test Suite / build (push) Has been skipped
Test Suite / test (3.11) (pull_request) Has been cancelled
Test Suite / test (3.12) (pull_request) Has been cancelled
Test Suite / lint (pull_request) Has been cancelled
Test Suite / build (pull_request) Has been cancelled
Security Scan / security (pull_request) Failing after 39s
Security Scan / dependency-check (pull_request) Failing after 34s
Some checks failed
Test Suite / test (3.12) (push) Successful in 1m27s
Test Suite / test (3.11) (push) Successful in 1m29s
Test Suite / lint (push) Failing after 10s
Test Suite / build (push) Has been skipped
Test Suite / test (3.11) (pull_request) Has been cancelled
Test Suite / test (3.12) (pull_request) Has been cancelled
Test Suite / lint (pull_request) Has been cancelled
Test Suite / build (pull_request) Has been cancelled
Security Scan / security (pull_request) Failing after 39s
Security Scan / dependency-check (pull_request) Failing after 34s
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
from typing import List, Dict, Any
|
from typing import List
|
||||||
import plotly.colors as pc
|
import plotly.colors as pc
|
||||||
from ..models.schemas import Document
|
from ..models.schemas import Document
|
||||||
|
|
||||||
@@ -29,5 +29,5 @@ class ColorMapper:
|
|||||||
gray_value * 0.7 + rgb[1] * 0.3,
|
gray_value * 0.7 + rgb[1] * 0.3,
|
||||||
gray_value * 0.7 + rgb[2] * 0.3)
|
gray_value * 0.7 + rgb[2] * 0.3)
|
||||||
return f'rgb({int(gray_rgb[0])},{int(gray_rgb[1])},{int(gray_rgb[2])})'
|
return f'rgb({int(gray_rgb[0])},{int(gray_rgb[1])},{int(gray_rgb[2])})'
|
||||||
except:
|
except: # noqa: E722
|
||||||
return 'rgb(128,128,128)'
|
return 'rgb(128,128,128)'
|
Reference in New Issue
Block a user