Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
pietropatelli committed Nov 14, 2023
1 parent 634062d commit b08646e
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions src/app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""application"""
import asyncio
import base64
import glob
import io
import os
import platform
from itertools import islice
import base64
import io

import dash
import dash_bootstrap_components as dbc
Expand All @@ -23,15 +23,10 @@
get_components_async,
get_translation,
get_url_cl,
translate_df,
retreive_codes_from_data,
translate_df,
)
from src.utils import (
snake_case,
cleanhtml,
error_box,
validate_yamlfile,
)
from src.utils import cleanhtml, error_box, snake_case, validate_yamlfile

external_stylesheets = [
dbc.themes.COSMO,
Expand Down Expand Up @@ -212,7 +207,7 @@
],
)
def get_language(*args):
""" Get the language code as returned by the callback
"""Get the language code as returned by the callback
:param *args: the language code clicked in the dropdown
:returns: string with the language code requested which is cached
Expand Down Expand Up @@ -1500,9 +1495,7 @@ async def download_single_chart(data_chart, row: int, pos: int):

# Fallback to descendants but less performant
except Exception as e:
print(
f"Invalid dsdLink for {chart_id}. Falling back to default. Error:{e}"
)
print(f"Invalid dsdLink for {chart_id}. Falling back to default. Error:{e}")
if data_chart["metadataLink"]:
# Metadata
try:
Expand Down

0 comments on commit b08646e

Please sign in to comment.