Skip to content
Snippets Groups Projects
Commit ef72eeb2 authored by Moul's avatar Moul
Browse files

[dep] Update black to v20.8b1, format code

parent ffbffd02
Branches
Tags
1 merge request!110Merge dev into master for v0.58.0 release
Pipeline #9664 failed
...@@ -8,9 +8,11 @@ BLOCK_ID_REGEX = "[0-9]+" ...@@ -8,9 +8,11 @@ BLOCK_ID_REGEX = "[0-9]+"
BLOCK_UID_REGEX = "{block_id_regex}-{block_hash_regex}".format( BLOCK_UID_REGEX = "{block_id_regex}-{block_hash_regex}".format(
block_id_regex=BLOCK_ID_REGEX, block_hash_regex=BLOCK_HASH_REGEX block_id_regex=BLOCK_ID_REGEX, block_hash_regex=BLOCK_HASH_REGEX
) )
CONDITIONS_REGEX = "(&&|\\|\\|| |[()]|(SIG\\({pubkey_regex}\\)|(XHX\\({hash_regex}\\))))*".format( CONDITIONS_REGEX = (
"(&&|\\|\\|| |[()]|(SIG\\({pubkey_regex}\\)|(XHX\\({hash_regex}\\))))*".format(
pubkey_regex=PUBKEY_REGEX, hash_regex=HASH_REGEX pubkey_regex=PUBKEY_REGEX, hash_regex=HASH_REGEX
) )
)
IPV4_REGEX = ( IPV4_REGEX = (
"(?:(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][" "(?:(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4]["
"0-9]|25[0-5])" "0-9]|25[0-5])"
......
...@@ -856,8 +856,7 @@ Currency: {1} ...@@ -856,8 +856,7 @@ Currency: {1}
... ...
PUBLIC_KEY:AMOUNT PUBLIC_KEY:AMOUNT
... ...
COMMENT COMMENT"""
"""
doc = "TX:{0}:{1}:{2}:{3}:{4}:{5}:{6}\n".format( doc = "TX:{0}:{1}:{2}:{3}:{4}:{5}:{6}\n".format(
self.version, self.version,
len(self.issuers), len(self.issuers),
......
...@@ -35,7 +35,7 @@ libnacl = "^1.6.1" ...@@ -35,7 +35,7 @@ libnacl = "^1.6.1"
pyaes = "^1.6.1" pyaes = "^1.6.1"
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]
black = { version = "^19.3b0", python = "^3.6" } black = { version = "^20.8b1", python = "^3.6" }
mypy = "^0.730" mypy = "^0.730"
pylint = "^2.4.2" pylint = "^2.4.2"
sphinx = "^3.0.2" sphinx = "^3.0.2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment