Skip to content
This repository was archived by the owner on Mar 23, 2020. It is now read-only.

Commit 8f52445

Browse files
committed
[linting] updated linting
1 parent 2221bb7 commit 8f52445

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

piston/__main__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
]
5858

5959

60-
def main() :
60+
def main():
6161
global args
6262

6363
parser = argparse.ArgumentParser(
@@ -1634,7 +1634,7 @@ def main() :
16341634
from steembase.account import PasswordKey
16351635
pw = get_terminal(text="Password for Memo Key: ", confirm=True, allowedempty=False)
16361636
memo_key = PasswordKey(args.account, pw, "memo")
1637-
args.key = format(memo_key.get_public_key(), "STM")
1637+
args.key = format(memo_key.get_public_key(), "STM")
16381638
memo_privkey = memo_key.get_private_key()
16391639
# Add the key to the wallet
16401640
if not args.nobroadcast:
@@ -1646,7 +1646,7 @@ def main() :
16461646

16471647
elif args.command == "newaccount":
16481648
import getpass
1649-
while True :
1649+
while True:
16501650
pw = getpass.getpass("New Account Passphrase: ")
16511651
if not pw:
16521652
print("You cannot chosen an empty password!")
@@ -1655,9 +1655,9 @@ def main() :
16551655
pwck = getpass.getpass(
16561656
"Confirm New Account Passphrase: "
16571657
)
1658-
if (pw == pwck) :
1658+
if (pw == pwck):
16591659
break
1660-
else :
1660+
else:
16611661
print("Given Passphrases do not match!")
16621662
pprint(steem.create_account(
16631663
args.accountname,
@@ -1673,7 +1673,7 @@ def main() :
16731673
imported = False
16741674

16751675
if "owner" in args.roles:
1676-
owner_key = PasswordKey(args.account, password, role="owner")
1676+
owner_key = PasswordKey(args.account, password, role="owner")
16771677
owner_pubkey = format(owner_key.get_public_key(), "STM")
16781678
if owner_pubkey in [x[0] for x in account["owner"]["key_auths"]]:
16791679
print("Importing owner key!")
@@ -1682,7 +1682,7 @@ def main() :
16821682
imported = True
16831683

16841684
if "active" in args.roles:
1685-
active_key = PasswordKey(args.account, password, role="active")
1685+
active_key = PasswordKey(args.account, password, role="active")
16861686
active_pubkey = format(active_key.get_public_key(), "STM")
16871687
if active_pubkey in [x[0] for x in account["active"]["key_auths"]]:
16881688
print("Importing active key!")
@@ -1691,7 +1691,7 @@ def main() :
16911691
imported = True
16921692

16931693
if "posting" in args.roles:
1694-
posting_key = PasswordKey(args.account, password, role="posting")
1694+
posting_key = PasswordKey(args.account, password, role="posting")
16951695
posting_pubkey = format(posting_key.get_public_key(), "STM")
16961696
if posting_pubkey in [x[0] for x in account["posting"]["key_auths"]]:
16971697
print("Importing posting key!")
@@ -1700,7 +1700,7 @@ def main() :
17001700
imported = True
17011701

17021702
if "memo" in args.roles:
1703-
memo_key = PasswordKey(args.account, password, role="memo")
1703+
memo_key = PasswordKey(args.account, password, role="memo")
17041704
memo_pubkey = format(memo_key.get_public_key(), "STM")
17051705
if memo_pubkey == account["memo_key"]:
17061706
print("Importing memo key!")

piston/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VERSION__ = '0.3.4'
1+
__VERSION__ = '0.4.0'

piston/ui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def print_permissions(account):
353353

354354
def get_terminal(text="Password", confirm=False, allowedempty=False):
355355
import getpass
356-
while True :
356+
while True:
357357
pw = getpass.getpass(text)
358358
if not pw and not allowedempty:
359359
print("Cannot be empty!")
@@ -364,8 +364,8 @@ def get_terminal(text="Password", confirm=False, allowedempty=False):
364364
pwck = getpass.getpass(
365365
"Confirm " + text
366366
)
367-
if (pw == pwck) :
367+
if (pw == pwck):
368368
break
369-
else :
369+
else:
370370
print("Not matching!")
371371
return pw

piston/web/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __call__(self, form, field):
5858
'postCategory': [
5959
Required(),
6060
],
61-
'wif' : [
61+
'wif': [
6262
Required(),
6363
WifPrivateKey()
6464
],

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'piston = piston.__main__:main',
3232
],
3333
},
34-
install_requires=["steem>=0.2.3",
34+
install_requires=["steem>=0.3.0",
3535
"prettytable==0.7.2",
3636
"colorama==0.3.6",
3737
],

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ commands=
1313
deps=
1414
flake8
1515
commands=
16-
flake8 --ignore=E221,E203,E241,E501,F401 piston
16+
flake8 --ignore=E501,F401 piston
1717

1818
[testenv:docs]
1919
basepython=

0 commit comments

Comments
 (0)