diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4638d452..2f8a201a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: docs/notes/ ) - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.7 + rev: v0.5.5 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes] diff --git a/lnschema_core/ids.py b/lnschema_core/ids.py index 4016993e..87f85d88 100644 --- a/lnschema_core/ids.py +++ b/lnschema_core/ids.py @@ -36,6 +36,7 @@ ======= =========== """ + import secrets import string diff --git a/lnschema_core/models.py b/lnschema_core/models.py index 3c81c05c..9938784d 100644 --- a/lnschema_core/models.py +++ b/lnschema_core/models.py @@ -81,15 +81,13 @@ class Meta: """ @overload - def __init__(self): - ... + def __init__(self): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self, @@ -164,15 +162,13 @@ class Meta: """Last run that created or updated the record.""" @overload - def __init__(self): - ... + def __init__(self): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self, @@ -196,15 +192,13 @@ class Meta: """Sequence of runs that created or updated the record.""" @overload - def __init__(self): - ... + def __init__(self): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self, @@ -1090,15 +1084,13 @@ def __init__( handle: str, email: str, name: str | None, - ): - ... + ): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self, @@ -1180,15 +1172,13 @@ def __init__( root: str, type: str, region: str | None, - ): - ... + ): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self, @@ -1340,15 +1330,13 @@ def __init__( version: str | None = None, type: TransformType | None = None, is_new_version_of: Transform | None = None, - ): - ... + ): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self, @@ -1483,15 +1471,13 @@ def __init__( transform: Transform, reference: str | None = None, reference_type: str | None = None, - ): - ... + ): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self, @@ -1598,15 +1584,13 @@ def __init__( description: str | None = None, reference: str | None = None, reference_type: str | None = None, - ): - ... + ): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self, @@ -1717,15 +1701,13 @@ def __init__( unit: str | None, description: str | None, synonyms: str | None, - ): - ... + ): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self, @@ -1867,15 +1849,13 @@ def __init__( features: Iterable[Record], dtype: str | None = None, name: str | None = None, - ): - ... + ): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self, @@ -2154,15 +2134,13 @@ def __init__( description: str | None = None, is_new_version_of: Artifact | None = None, run: Run | None = None, - ): - ... + ): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self, @@ -2611,15 +2589,13 @@ def __init__( reference_type: str | None = None, run: Run | None = None, is_new_version_of: Collection | None = None, - ): - ... + ): ... @overload def __init__( self, *db_args, - ): - ... + ): ... def __init__( self,