Skip to content

Commit e5bf9ed

Browse files
committed
refactor: lint
1 parent 3b716eb commit e5bf9ed

17 files changed

+17
-17
lines changed

src/model/biological_material.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
class BiologicalMaterial(Variable):
19-
__tablename__: str = "biological_material_table" # type: ignore[assignment]
19+
__tablename__: str = "biological_material_table"
2020
__mapper_args__ = {"polymorphic_identity": "biological_material"}
2121

2222
id: Mapped[UUID] = mapped_column(ForeignKey("variable_table.id"), primary_key=True, info=dto_field("read-only"))

src/model/data_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
class DataFile(Base):
28-
__tablename__ = "data_file_table" # type: ignore[assignment]
28+
__tablename__ = "data_file_table"
2929

3030
data_file_description: Mapped[str] = mapped_column(nullable=False)
3131
data_file_version: Mapped[str] = mapped_column(nullable=False)

src/model/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
class Device(Base):
18-
__tablename__: str = "device_table" # type: ignore[assignment]
18+
__tablename__: str = "device_table"
1919
name: Mapped[str] = mapped_column(nullable=False)
2020
brand: Mapped[str | None]
2121
serial_number: Mapped[str | None]

src/model/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
class Environment(Variable):
14-
__tablename__: str = "environment_table" # type: ignore[assignment]
14+
__tablename__: str = "environment_table"
1515

1616
__mapper_args__ = {"polymorphic_identity": "environment"}
1717

src/model/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
class Event(Base):
13-
__tablename__ = "event_table" # type: ignore[assignment]
13+
__tablename__ = "event_table"
1414
event_date: Mapped[datetime.datetime | None]
1515
vocabulary_id: Mapped[UUID | None] = mapped_column(ForeignKey("vocabulary_table.id"))
1616
observation_unit_id: Mapped[UUID | None] = mapped_column(ForeignKey("observation_unit_table.id"))

src/model/experiment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535

3636
class Experiment(Base):
37-
__tablename__ = "experiment_table" # type: ignore[assignment]
37+
__tablename__ = "experiment_table"
3838
title: Mapped[str] = mapped_column(nullable=False)
3939
objective: Mapped[str | None]
4040
start_date: Mapped[datetime.datetime | None]

src/model/experimental_factor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# TODO: make experimental factor values actual table
1818
class ExperimentalFactor(Variable):
19-
__tablename__: str = "experimental_factor_table" # type: ignore[assignment]
19+
__tablename__: str = "experimental_factor_table"
2020
__mapper_args__ = {"polymorphic_identity": "experimental_factor"}
2121

2222
id: Mapped[UUID] = mapped_column(ForeignKey("variable_table.id"), primary_key=True, info=dto_field("read-only"))

src/model/facility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
class Facility(Base):
20-
__tablename__ = "facility_table" # type: ignore[assignment]
20+
__tablename__ = "facility_table"
2121
name: Mapped[str]
2222
description: Mapped[str | None]
2323
address: Mapped[str | None]

src/model/institution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
class Institution(Base):
29-
__tablename__ = "institution_table" # type: ignore[assignment]
29+
__tablename__ = "institution_table"
3030
name: Mapped[str] = mapped_column(nullable=False, unique=True)
3131
country: Mapped[str | None] = mapped_column(nullable=True)
3232

src/model/investigation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
class Investigation(Base):
17-
__tablename__ = "investigation_table" # type: ignore[assignment]
17+
__tablename__ = "investigation_table"
1818
title: Mapped[str] = mapped_column(nullable=False, unique=True)
1919
description: Mapped[str | None] = mapped_column(nullable=True)
2020
submission_date: Mapped[datetime.datetime | None]

0 commit comments

Comments
 (0)