Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 4, 2024
1 parent 0649aa0 commit df46c60
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
10 changes: 2 additions & 8 deletions pipelines/meteorologia/precipitacao_alertario/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,13 @@
#########################

dfr_pluviometric, dfr_meteorological = download_data()
(
dfr_pluviometric,
empty_data_pluviometric,
) = treat_pluviometer_and_meteorological_data(
(dfr_pluviometric, empty_data_pluviometric,) = treat_pluviometer_and_meteorological_data(
dfr=dfr_pluviometric,
dataset_id=DATASET_ID_PLUVIOMETRIC,
table_id=TABLE_ID_PLUVIOMETRIC,
mode=MATERIALIZATION_MODE,
)
(
dfr_meteorological,
empty_data_meteorological,
) = treat_pluviometer_and_meteorological_data(
(dfr_meteorological, empty_data_meteorological,) = treat_pluviometer_and_meteorological_data(
dfr=dfr_meteorological,
dataset_id=DATASET_ID_METEOROLOGICAL,
table_id=TABLE_ID_METEOROLOGICAL,
Expand Down
3 changes: 2 additions & 1 deletion pipelines/meteorologia/radar/mendanha/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from prefect.run_configs import KubernetesRun # pylint: disable=E0611, E0401
from prefect.storage import GCS # pylint: disable=E0611, E0401
from prefeitura_rio.pipelines_utils.custom import Flow # pylint: disable=E0611, E0401
# pylint: disable=E0611, E0401

# pylint: disable=E0611, E0401
from prefeitura_rio.pipelines_utils.state_handlers import handler_inject_bd_credentials
from prefeitura_rio.pipelines_utils.tasks import ( # pylint: disable=E0611, E0401
create_table_and_upload_to_gcs,
Expand Down
2 changes: 1 addition & 1 deletion pipelines/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import json
from pathlib import Path
from typing import List, Union, Tuple
from typing import List, Tuple, Union

import pandas as pd
import pendulum # pylint: disable=E0611, E0401
Expand Down
6 changes: 3 additions & 3 deletions pipelines/utils/gypscie/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,9 @@ def get_dataset_info(station_type: str, source: str) -> Dict:
}
if source == "alertario":
dataset_info["table_id"] = "meteorologia_alertario"
dataset_info["destination_table_id"] = (
"preprocessamento_estacao_meteorologica_alertario"
)
dataset_info[
"destination_table_id"
] = "preprocessamento_estacao_meteorologica_alertario"
elif source == "inmet":
dataset_info["table_id"] = "meteorologia_inmet"
dataset_info["destination_table_id"] = "preprocessamento_estacao_meteorologica_inmet"
Expand Down

0 comments on commit df46c60

Please sign in to comment.