pylint and other fixes

This commit is contained in:
Lex Berezhny 2020-09-16 20:02:34 -04:00
parent 14436b3955
commit 23f186e6a1
3 changed files with 2 additions and 3 deletions

View file

@ -14,7 +14,7 @@ idea:
start: start:
dropdb lbry --if-exists dropdb lbry --if-exists
createdb lbry createdb lbry
lbrynet start --full-node \ lbrynet start node \
--db-url=postgresql:///lbry --workers=0 --console=advanced --no-spv-address-filters \ --db-url=postgresql:///lbry --workers=0 --console=advanced --no-spv-address-filters \
--lbrycrd-rpc-user=lbry --lbrycrd-rpc-pass=somethingelse \ --lbrycrd-rpc-user=lbry --lbrycrd-rpc-pass=somethingelse \
--lbrycrd-dir=${HOME}/.lbrycrd --data-dir=/tmp/tmp-lbrynet --lbrycrd-dir=${HOME}/.lbrycrd --data-dir=/tmp/tmp-lbrynet

View file

@ -113,7 +113,7 @@ class Database:
def temp_sqlite_regtest(cls, lbrycrd_dir=None): def temp_sqlite_regtest(cls, lbrycrd_dir=None):
from lbry import Config, RegTestLedger # pylint: disable=import-outside-toplevel from lbry import Config, RegTestLedger # pylint: disable=import-outside-toplevel
directory = tempfile.mkdtemp() directory = tempfile.mkdtemp()
conf = Config.with_same_dir(directory) conf = Config.with_same_dir(directory).set(blockchain="regtest")
if lbrycrd_dir is not None: if lbrycrd_dir is not None:
conf.lbrycrd_dir = lbrycrd_dir conf.lbrycrd_dir = lbrycrd_dir
ledger = RegTestLedger(conf) ledger = RegTestLedger(conf)

View file

@ -58,7 +58,6 @@ class Service:
This is the programmatic api (as compared to API) This is the programmatic api (as compared to API)
""" """
name: str
sync: Sync sync: Sync
def __init__(self, ledger: Ledger): def __init__(self, ledger: Ledger):