Skip to content

Commit

Permalink
style(black): format with black v24 (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Jan 29, 2024
1 parent 3d513f6 commit cc60522
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 3 deletions.
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-09-28 10:15:48.502050
"""

from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils
Expand Down
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-10-09 16:12:00.090837
"""

from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils
Expand Down
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-05-07 12:40:54.207470
"""

from alembic import op
import sqlalchemy as sa

Expand Down
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-06-07 12:17:47.218408
"""

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
Expand Down
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-03-07 12:47:11.867026
"""

from alembic import op
import sqlalchemy as sa

Expand Down
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-07-11 13:01:19.179610
"""

from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils
Expand Down
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-10-06 11:40:29.912743
"""

from alembic import op
import sqlalchemy as sa

Expand Down
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-10-02 12:08:18.292490
"""

from alembic import op
import sqlalchemy as sa

Expand Down
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-28 17:29:58.140440
"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-29 13:56:23.588587
"""

from alembic import op


Expand Down
8 changes: 5 additions & 3 deletions reana_db/models.py
Expand Up @@ -1058,9 +1058,11 @@ def _human_readable_bytes(bytes_):

converted_value = round(bytes_ / math.pow(k, unit_index), digits)
return "{converted_value} {converted_unit}".format(
converted_value=int(converted_value)
if converted_value.is_integer()
else converted_value,
converted_value=(
int(converted_value)
if converted_value.is_integer()
else converted_value
),
converted_unit=units[unit_index],
)

Expand Down

0 comments on commit cc60522

Please sign in to comment.