Skip to content

Commit

Permalink
make isort and black work together
Browse files Browse the repository at this point in the history
  • Loading branch information
elisalle committed Sep 10, 2024
1 parent 665a155 commit 92afe73
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 29 deletions.
19 changes: 7 additions & 12 deletions batch_calculator/process_results.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
import click
import json
import os
import pandas
import shutil
import zipfile

from batch_calculator.rain_series_simulations import (
printProgressBar,
api_call,
)
from math import floor
from pathlib import Path
from typing import Dict, List
from urllib.request import urlretrieve

import click
import pandas
from threedi_api_client import ThreediApi
from threedi_api_client.openapi.models import SimulationStatus
from threedi_api_client.versions import V3BetaApi
from typing import (
Dict,
List,
)
from threedigrid.admin.gridresultadmin import GridH5AggregateResultAdmin
from urllib.request import urlretrieve

from batch_calculator.rain_series_simulations import api_call, printProgressBar


def repetition_time_volumes(weir_results, n, stats=[1, 2, 5, 10]):
Expand Down
25 changes: 9 additions & 16 deletions batch_calculator/rain_series_simulations.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
from urllib.request import urlretrieve
import click
import numpy as np
import json
import os
import shutil
import pytz
import netCDF4 as nc4
import zipfile


from datetime import datetime
from pathlib import Path
from sqlalchemy import (
create_engine,
text,
)
from time import sleep
from typing import Dict, List
from urllib.request import urlretrieve

import click
import netCDF4 as nc4
import numpy as np
import pytz
from sqlalchemy import create_engine, text
from sqlalchemy.orm import Session
from threedi_api_client import ThreediApi
from threedi_api_client.files import upload_file
Expand All @@ -32,11 +30,6 @@
UploadEventFile,
)
from threedi_api_client.versions import V3BetaApi
from time import sleep
from typing import (
Dict,
List,
)

RAIN_EVENTS_START_DATE = datetime(1955, 1, 1)
REQUIRED_AGGREGATION_METHODS = {"cum", "cum_negative", "cum_positive"}
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ version = {attr = "batch_calculator.__version__"}

[tool.zest-releaser]
release = false

[tool.isort]
profile = "black"
force_alphabetical_sort_within_sections = true
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[flake8]
max-line-length = 90
max-line-length = 88
extend-ignore = E203,E701

0 comments on commit 92afe73

Please sign in to comment.