Skip to content
Snippets Groups Projects
Commit b5b67b86 authored by Paul Kehrer's avatar Paul Kehrer
Browse files

Merge pull request #70 from alex/full-flake8

Check all the things with flake8
parents ff9696f7 5afdee0a
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ def test_scalarmult(): ...@@ -109,7 +109,7 @@ def test_scalarmult():
assert len(x) == 32 assert len(x) == 32
y, ypub = secret_scalar() y, ypub = secret_scalar()
# the Curve25519 base point (generator) # the Curve25519 base point (generator)
base = unhexlify(b"09" + b"00"*31) base = unhexlify(b"09" + b"00" * 31)
bx1 = c.crypto_scalarmult_base(x) bx1 = c.crypto_scalarmult_base(x)
bx2 = c.crypto_scalarmult(x, base) bx2 = c.crypto_scalarmult(x, base)
...@@ -120,7 +120,7 @@ def test_scalarmult(): ...@@ -120,7 +120,7 @@ def test_scalarmult():
ybx = c.crypto_scalarmult(y, c.crypto_scalarmult_base(x)) ybx = c.crypto_scalarmult(y, c.crypto_scalarmult_base(x))
assert tohex(xby) == tohex(ybx) assert tohex(xby) == tohex(ybx)
z = unhexlify(b"10"*32) z = unhexlify(b"10" * 32)
bz1 = c.crypto_scalarmult_base(z) bz1 = c.crypto_scalarmult_base(z)
assert tohex(bz1) == ("781faab908430150daccdd6f9d6c5086" assert tohex(bz1) == ("781faab908430150daccdd6f9d6c5086"
"e34f73a93ebbaa271765e5036edfc519") "e34f73a93ebbaa271765e5036edfc519")
......
...@@ -24,4 +24,5 @@ deps = flake8 ...@@ -24,4 +24,5 @@ deps = flake8
commands = flake8 . commands = flake8 .
[flake8] [flake8]
select = E,W,F
exclude = .tox,*.egg exclude = .tox,*.egg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment