forked from LBRYCommunity/lbry-sdk
lint
This commit is contained in:
parent
1eaa195363
commit
23c10faff5
4 changed files with 3 additions and 6 deletions
|
@ -8,7 +8,6 @@ import time
|
||||||
import inspect
|
import inspect
|
||||||
import typing
|
import typing
|
||||||
import random
|
import random
|
||||||
import hashlib
|
|
||||||
import tracemalloc
|
import tracemalloc
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from urllib.parse import urlencode, quote
|
from urllib.parse import urlencode, quote
|
||||||
|
|
|
@ -13,7 +13,7 @@ from datetime import date
|
||||||
from prometheus_client import Gauge, Counter, Histogram
|
from prometheus_client import Gauge, Counter, Histogram
|
||||||
from lbry.utils import LockWithMetrics
|
from lbry.utils import LockWithMetrics
|
||||||
|
|
||||||
from .bip32 import PublicKey, PrivateKey
|
from .bip32 import PublicKey
|
||||||
from .transaction import Transaction, Output, OutputScript, TXRefImmutable, Input
|
from .transaction import Transaction, Output, OutputScript, TXRefImmutable, Input
|
||||||
from .constants import TXO_TYPES, CLAIM_TYPES
|
from .constants import TXO_TYPES, CLAIM_TYPES
|
||||||
from .util import date_to_julian_day
|
from .util import date_to_julian_day
|
||||||
|
|
|
@ -6,8 +6,6 @@ from typing import List, Iterable, Optional, Tuple
|
||||||
|
|
||||||
from coincurve import PublicKey as cPublicKey
|
from coincurve import PublicKey as cPublicKey
|
||||||
from coincurve.ecdsa import deserialize_compact, cdata_to_der
|
from coincurve.ecdsa import deserialize_compact, cdata_to_der
|
||||||
from cryptography.hazmat.backends import default_backend
|
|
||||||
from cryptography.hazmat.primitives.serialization import load_der_public_key
|
|
||||||
from cryptography.hazmat.primitives import hashes
|
from cryptography.hazmat.primitives import hashes
|
||||||
from cryptography.hazmat.primitives.asymmetric import ec
|
from cryptography.hazmat.primitives.asymmetric import ec
|
||||||
from cryptography.hazmat.primitives.asymmetric.utils import Prehashed
|
from cryptography.hazmat.primitives.asymmetric.utils import Prehashed
|
||||||
|
@ -27,7 +25,7 @@ from .constants import COIN, NULL_HASH32
|
||||||
from .bcd_data_stream import BCDataStream
|
from .bcd_data_stream import BCDataStream
|
||||||
from .hash import TXRef, TXRefImmutable
|
from .hash import TXRef, TXRefImmutable
|
||||||
from .util import ReadOnlyList
|
from .util import ReadOnlyList
|
||||||
from .bip32 import PrivateKey, PublicKey
|
from .bip32 import PrivateKey
|
||||||
|
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from lbry.wallet.account import Account
|
from lbry.wallet.account import Account
|
||||||
|
|
|
@ -18,7 +18,7 @@ ignore=words,server,rpc,schema,winpaths.py,migrator,undecorated.py
|
||||||
max-parents=10
|
max-parents=10
|
||||||
max-args=10
|
max-args=10
|
||||||
max-line-length=120
|
max-line-length=120
|
||||||
good-names=T,t,n,i,j,k,x,y,s,f,d,h,c,e,op,db,tx,io,cachedproperty,log,id,r,iv,ts,l
|
good-names=T,t,n,i,j,k,x,y,s,f,d,h,c,e,op,db,tx,io,cachedproperty,log,id,r,iv,ts,l,pk
|
||||||
valid-metaclass-classmethod-first-arg=mcs
|
valid-metaclass-classmethod-first-arg=mcs
|
||||||
disable=
|
disable=
|
||||||
c-extension-no-member,
|
c-extension-no-member,
|
||||||
|
|
Loading…
Reference in a new issue