Skip to content

Commit

Permalink
Apply extra Ruff rules
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Apr 9, 2024
1 parent 17c45ff commit b588f51
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
14 changes: 7 additions & 7 deletions electrolytes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import pkgutil
from pathlib import Path
from collections.abc import Collection, Iterator, Sequence, Mapping
from typing import Optional, Any, Annotated
from functools import cached_property, singledispatchmethod
from collections.abc import Collection, Iterator, Mapping, Sequence
from contextlib import ContextDecorator
from functools import cached_property, singledispatchmethod
from pathlib import Path
from typing import Annotated, Any, Optional
from warnings import warn

from filelock import FileLock
from pydantic import (
BaseModel,
Field,
field_validator,
TypeAdapter,
ValidationInfo,
field_validator,
model_validator,
TypeAdapter,
)
from filelock import FileLock
from typer import get_app_dir

__version__ = "0.4.3"
Expand Down
5 changes: 2 additions & 3 deletions electrolytes/__main__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from typing import Optional, Annotated
from typing import Annotated, Optional

import typer

from . import database, Constituent, __version__

from . import Constituent, __version__, database

app = typer.Typer()

Expand Down
2 changes: 0 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import pytest

from typer.testing import CliRunner

import electrolytes
from electrolytes import Constituent, database
from electrolytes.__main__ import app


runner = CliRunner()


Expand Down

0 comments on commit b588f51

Please sign in to comment.