mirror of
https://github.com/romanz/amodem.git
synced 2026-04-20 21:26:39 +08:00
tox: pep8 -> pycodestyle
This commit is contained in:
@@ -186,6 +186,7 @@ def _parse_pubkey(stream, packet_type='pubkey'):
|
|||||||
log.debug('key ID: %s', util.hexlify(p['key_id']))
|
log.debug('key ID: %s', util.hexlify(p['key_id']))
|
||||||
return p
|
return p
|
||||||
|
|
||||||
|
|
||||||
_parse_subkey = functools.partial(_parse_pubkey, packet_type='subkey')
|
_parse_subkey = functools.partial(_parse_pubkey, packet_type='subkey')
|
||||||
|
|
||||||
|
|
||||||
@@ -195,6 +196,7 @@ def _parse_user_id(stream, packet_type='user_id'):
|
|||||||
to_hash = b'\xb4' + util.prefix_len('>L', value)
|
to_hash = b'\xb4' + util.prefix_len('>L', value)
|
||||||
return {'type': packet_type, 'value': value, '_to_hash': to_hash}
|
return {'type': packet_type, 'value': value, '_to_hash': to_hash}
|
||||||
|
|
||||||
|
|
||||||
# User attribute is handled as an opaque user ID
|
# User attribute is handled as an opaque user ID
|
||||||
_parse_attribute = functools.partial(_parse_user_id,
|
_parse_attribute = functools.partial(_parse_user_id,
|
||||||
packet_type='user_attribute')
|
packet_type='user_attribute')
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ def _parse_ecdsa_sig(args):
|
|||||||
return (util.bytes2num(sig_r),
|
return (util.bytes2num(sig_r),
|
||||||
util.bytes2num(sig_s))
|
util.bytes2num(sig_s))
|
||||||
|
|
||||||
|
|
||||||
# DSA and EDDSA happen to have the same structure as ECDSA signatures
|
# DSA and EDDSA happen to have the same structure as ECDSA signatures
|
||||||
_parse_dsa_sig = _parse_ecdsa_sig
|
_parse_dsa_sig = _parse_ecdsa_sig
|
||||||
_parse_eddsa_sig = _parse_ecdsa_sig
|
_parse_eddsa_sig = _parse_ecdsa_sig
|
||||||
|
|||||||
6
tox.ini
6
tox.ini
@@ -1,6 +1,6 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py27,py3
|
envlist = py27,py3
|
||||||
[pep8]
|
[pycodestyle]
|
||||||
max-line-length = 100
|
max-line-length = 100
|
||||||
[pep257]
|
[pep257]
|
||||||
add-ignore = D401
|
add-ignore = D401
|
||||||
@@ -8,14 +8,14 @@ add-ignore = D401
|
|||||||
deps=
|
deps=
|
||||||
pytest
|
pytest
|
||||||
mock
|
mock
|
||||||
pep8
|
pycodestyle
|
||||||
coverage
|
coverage
|
||||||
pylint
|
pylint
|
||||||
semver
|
semver
|
||||||
pydocstyle
|
pydocstyle
|
||||||
isort
|
isort
|
||||||
commands=
|
commands=
|
||||||
pep8 libagent
|
pycodestyle libagent
|
||||||
# isort --skip-glob .tox -c -r libagent
|
# isort --skip-glob .tox -c -r libagent
|
||||||
pylint --reports=no --rcfile .pylintrc libagent
|
pylint --reports=no --rcfile .pylintrc libagent
|
||||||
pydocstyle libagent
|
pydocstyle libagent
|
||||||
|
|||||||
Reference in New Issue
Block a user