Remove periods from one-sentence comments

This commit is contained in:
Alexander Hess 2026-12-03 10:03:26 +01:00
commit 049a5f6f62
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
5 changed files with 308 additions and 308 deletions

View file

@ -10,13 +10,13 @@ from velofy import config as pkg_config
from velofy import db
# Disable the --sql option, a.k.a, the "offline mode".
# Disable the --sql option, a.k.a, the "offline mode"
if context.is_offline_mode():
msg = "The --sql option is not implemented in this project"
raise NotImplementedError(msg)
# Set up the default Python logger from the alembic.ini file.
# Set up the default Python logger from the alembic.ini file
log_config.fileConfig(context.config.config_file_name)

View file

@ -37,7 +37,7 @@ def upgrade():
"side_length",
name=op.f("uq_grids_on_city_id_side_length"),
),
# This `UniqueConstraint` is needed by the `addresses_pixels` table below.
# This `UniqueConstraint` is needed by the `addresses_pixels` table below
sa.UniqueConstraint("id", "city_id", name=op.f("uq_grids_on_id_city_id")),
schema=config.CLEAN_SCHEMA,
)
@ -90,7 +90,7 @@ def upgrade():
schema=config.CLEAN_SCHEMA,
)
# This `UniqueConstraint` is needed by the `addresses_pixels` table below.
# This `UniqueConstraint` is needed by the `addresses_pixels` table below
op.create_unique_constraint(
"uq_addresses_on_id_city_id",
"addresses",

View file

@ -326,7 +326,7 @@ def upgrade():
""",
)
# 4) Ensure every `Restaurant` has only one `Order.pickup_address`.
# 4) Ensure every `Restaurant` has only one `Order.pickup_address`
op.execute(
f"""
UPDATE

View file

@ -23,15 +23,15 @@ config = configuration.make_config("testing" if os.getenv("TESTING") else "produ
def upgrade():
"""Upgrade to revision 81aa304d7a6e."""
# Drop unnecessary check constraint.
op.execute( # `.delivery_at` is not set for `.cancelled` orders anyways.
# Drop unnecessary check constraint
op.execute( # `.delivery_at` is not set for `.cancelled` orders anyways
f"""
ALTER TABLE {config.CLEAN_SCHEMA}.orders
DROP CONSTRAINT ck_orders_on_ordered_timestamps_21;
""",
)
# Add forgotten check constraints to the `orders` table.
# Add forgotten check constraints to the `orders` table
op.execute(
f"""
ALTER TABLE {config.CLEAN_SCHEMA}.orders
@ -57,7 +57,7 @@ def upgrade():
""",
)
# This `UniqueConstraint` is needed by the `replayed_orders` table below.
# This `UniqueConstraint` is needed by the `replayed_orders` table below
op.create_unique_constraint(
"uq_orders_on_id_ad_hoc",
"orders",
@ -125,7 +125,7 @@ def upgrade():
ondelete="RESTRICT",
),
sa.ForeignKeyConstraint(
# Needs the `UniqueConstraint` from above.
# Needs the `UniqueConstraint` from above
["actual_order_id", "ad_hoc"],
[
f"{config.CLEAN_SCHEMA}.orders.id",

View file

@ -29,7 +29,7 @@ config = configuration.make_config("testing" if os.getenv("TESTING") else "produ
# The order matters: the "ordered_timestamps_N" constraints are shifted
# by one from the top down such that every new name is free.
# by one from the top down such that every new name is free
RENAMES = (
(
"forecasts",