Skip to content

Commit 17478be

Browse files
Zlopezmergify[bot]
authored andcommitted
Reformat using black v26
Reformat codebase using new black version. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
1 parent a479419 commit 17478be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+68
-56
lines changed

anitya/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
"""Module anitya"""
4+
45
from importlib import metadata
56

67
__api_version__ = "1.2"

anitya/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
"""Module anitya.admin"""
4+
45
import logging
56
from math import ceil
67

anitya/authentication.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.. _Flask-Login: https://flask-login.readthedocs.io/en/latest/
3030
.. _Authlib: https://docs.authlib.org/en/latest/
3131
"""
32+
3233
import logging
3334
import uuid
3435
from functools import wraps

anitya/compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"""
1919
Handles compatibility imports for Anitya.
2020
"""
21+
2122
from __future__ import absolute_import, unicode_literals
2223

2324
# flask_wtf.Form was renamed to flask_wtf.FlaskForm

anitya/db/events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# with this program; if not, write to the Free Software Foundation,
1515
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1616
"""This module contains functions that are triggered by SQLAlchemy events."""
17+
1718
import logging
1819

1920
from sqlalchemy import event

anitya/db/meta.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
events need to be imported by ``__init__.py``, but they also need access to
2525
the :class:`Base` model and :class:`Session`.
2626
"""
27+
2728
from __future__ import unicode_literals
2829

2930
import collections

anitya/db/migrations/versions/1ab95561edae_convert_date_to_rpm.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@
1414

1515
def upgrade():
1616
"""Any project using Date version scheme should now use RPM version scheme."""
17-
op.execute(
18-
"""
17+
op.execute("""
1918
UPDATE projects
2019
SET version_scheme='RPM'
2120
WHERE version_scheme='Date'
22-
"""
23-
)
21+
""")
2422

2523

2624
def downgrade():

anitya/db/migrations/versions/27342bce1d0f_populate_project_version_scheme.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ def upgrade():
1717
This was the only available version value before this update.
1818
In newer version of Anitya you can change the value when editing project.
1919
"""
20-
op.execute(
21-
"""
20+
op.execute("""
2221
UPDATE projects
2322
SET version_scheme='RPM'
2423
WHERE version_scheme is null
25-
"""
26-
)
24+
""")
2725

2826

2927
def downgrade():

anitya/db/migrations/versions/2d1aa7ff82a5_remove_code_google_backend.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ def upgrade():
1616
"""
1717
Change backend of projects with code google backend to custom.
1818
"""
19-
op.execute(
20-
"""
19+
op.execute("""
2120
UPDATE projects
2221
SET backend='custom'
2322
WHERE backend='Google code'
24-
"""
25-
)
23+
""")
2624

2725

2826
def downgrade():

anitya/db/migrations/versions/34b9bb5fa388_make_ecosystem_non_nullable.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@
3131

3232
def upgrade():
3333
"""Make the ecosystem_name non-nullable after setting null instances to the homepage."""
34-
op.execute(
35-
"""
34+
op.execute("""
3635
UPDATE projects
3736
SET ecosystem_name=homepage
3837
WHERE ecosystem_name IS NULL
39-
"""
40-
)
38+
""")
4139
op.alter_column(
4240
"projects",
4341
"ecosystem_name",
@@ -54,10 +52,8 @@ def downgrade():
5452
existing_type=sa.VARCHAR(length=200),
5553
nullable=True,
5654
)
57-
op.execute(
58-
"""
55+
op.execute("""
5956
UPDATE projects
6057
SET ecosystem_name=NULL
6158
WHERE ecosystem_name=homepage
62-
"""
63-
)
59+
""")

0 commit comments

Comments
 (0)