diff --git a/tastytrade/watchlists.py b/tastytrade/watchlists.py index 3f839da..bfb4b8b 100644 --- a/tastytrade/watchlists.py +++ b/tastytrade/watchlists.py @@ -28,7 +28,10 @@ class PairsWatchlist(TastytradeJsonDataclass): # pragma: no cover pairs_equations: List[Pair] @classmethod - def get_pairs_watchlists(cls, session: ProductionSession) -> List['PairsWatchlist']: + def get_pairs_watchlists( + cls, + session: ProductionSession + ) -> List['PairsWatchlist']: """ Fetches a list of all Tastytrade public pairs watchlists. @@ -106,7 +109,11 @@ def get_public_watchlists( return [cls(**entry) for entry in data] @classmethod - def get_public_watchlist(cls, session: ProductionSession, name: str) -> 'Watchlist': + def get_public_watchlist( + cls, + session: ProductionSession, + name: str + ) -> 'Watchlist': """ Fetches a Tastytrade public watchlist by name. @@ -126,7 +133,10 @@ def get_public_watchlist(cls, session: ProductionSession, name: str) -> 'Watchli return cls(**data) @classmethod - def get_private_watchlists(cls, session: ProductionSession) -> List['Watchlist']: + def get_private_watchlists( + cls, + session: ProductionSession + ) -> List['Watchlist']: """ Fetches a the user's private watchlists. @@ -145,7 +155,11 @@ def get_private_watchlists(cls, session: ProductionSession) -> List['Watchlist'] return [cls(**entry) for entry in data] @classmethod - def get_private_watchlist(cls, session: ProductionSession, name: str) -> 'Watchlist': + def get_private_watchlist( + cls, + session: ProductionSession, + name: str + ) -> 'Watchlist': """ Fetches a user's watchlist by name. @@ -165,7 +179,11 @@ def get_private_watchlist(cls, session: ProductionSession, name: str) -> 'Watchl return cls(**data) @classmethod - def remove_private_watchlist(cls, session: ProductionSession, name: str) -> None: + def remove_private_watchlist( + cls, + session: ProductionSession, + name: str + ) -> None: """ Deletes the named private watchlist. diff --git a/tests/conftest.py b/tests/conftest.py index a2252fd..6dff9a2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ import os + import pytest from tastytrade import CertificationSession diff --git a/tests/test_account.py b/tests/test_account.py index 20f668a..1f92e44 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -1,9 +1,11 @@ from decimal import Decimal + import pytest from tastytrade import Account from tastytrade.instruments import Equity -from tastytrade.order import NewOrder, OrderAction, OrderTimeInForce, OrderType, PriceEffect +from tastytrade.order import (NewOrder, OrderAction, OrderTimeInForce, + OrderType, PriceEffect) @pytest.fixture diff --git a/tests/test_instruments.py b/tests/test_instruments.py index 5337cc8..b942f35 100644 --- a/tests/test_instruments.py +++ b/tests/test_instruments.py @@ -1,4 +1,8 @@ -from tastytrade.instruments import Cryptocurrency, Equity, FutureProduct, FutureOptionProduct, Option, NestedOptionChain, Warrant, get_quantity_decimal_precisions, get_option_chain +from tastytrade.instruments import (Cryptocurrency, Equity, + FutureOptionProduct, FutureProduct, + NestedOptionChain, Option, Warrant, + get_option_chain, + get_quantity_decimal_precisions) def test_get_cryptocurrency(session): diff --git a/tests/test_streamer.py b/tests/test_streamer.py index 68b5783..aed0111 100644 --- a/tests/test_streamer.py +++ b/tests/test_streamer.py @@ -1,4 +1,3 @@ -import asyncio import pytest import pytest_asyncio