Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
⬆️ Bump ruff to 0.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Jul 31, 2024
1 parent 49225c8 commit 18f11bd
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions lnschema_core/ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
======= ===========
"""

import secrets
import string

Expand Down
72 changes: 24 additions & 48 deletions lnschema_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,13 @@ class Meta:
"""

@overload
def __init__(self):
...
def __init__(self): ...

@overload
def __init__(
self,
*db_args,
):
...
): ...

def __init__(
self,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -1090,15 +1084,13 @@ def __init__(
handle: str,
email: str,
name: str | None,
):
...
): ...

@overload
def __init__(
self,
*db_args,
):
...
): ...

def __init__(
self,
Expand Down Expand Up @@ -1180,15 +1172,13 @@ def __init__(
root: str,
type: str,
region: str | None,
):
...
): ...

@overload
def __init__(
self,
*db_args,
):
...
): ...

def __init__(
self,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -1717,15 +1701,13 @@ def __init__(
unit: str | None,
description: str | None,
synonyms: str | None,
):
...
): ...

@overload
def __init__(
self,
*db_args,
):
...
): ...

def __init__(
self,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 18f11bd

Please sign in to comment.