Fixed linting issues
- re-enabled lint checks
This commit is contained in:
4
.github/workflows/packagingtest.yml
vendored
4
.github/workflows/packagingtest.yml
vendored
@@ -32,8 +32,8 @@ jobs:
|
|||||||
- name: Lint with flake8 and check black
|
- name: Lint with flake8 and check black
|
||||||
run: |
|
run: |
|
||||||
pip install black flake8
|
pip install black flake8
|
||||||
# flake8 . --filename '*.py,*.pyx,*.pxd' --count --show-source --statistics --exclude benchmark,build,capnp/templates/module.pyx
|
flake8 . --filename '*.py,*.pyx,*.pxd' --count --show-source --statistics --exclude benchmark,build,capnp/templates/module.pyx
|
||||||
# flake8 . --count --show-source --statistics --exclude benchmark,build
|
flake8 . --count --show-source --statistics --exclude benchmark,build
|
||||||
black . --check --diff --color
|
black . --check --diff --color
|
||||||
- name: Packaging
|
- name: Packaging
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ def test_roundtrip_bytes_buffer(all_types):
|
|||||||
|
|
||||||
def test_roundtrip_bytes_fail(all_types):
|
def test_roundtrip_bytes_fail(all_types):
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(TypeError):
|
||||||
with all_types.TestAllTypes.from_bytes(42) as msg:
|
with all_types.TestAllTypes.from_bytes(42) as _:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@@ -238,7 +238,9 @@ def test_from_bytes_traversal_limit(all_types):
|
|||||||
for i in range(0, size):
|
for i in range(0, size):
|
||||||
msg.structList[i].uInt8Field == 0
|
msg.structList[i].uInt8Field == 0
|
||||||
|
|
||||||
with all_types.TestAllTypes.from_bytes(data, traversal_limit_in_words=2 ** 62) as msg:
|
with all_types.TestAllTypes.from_bytes(
|
||||||
|
data, traversal_limit_in_words=2**62
|
||||||
|
) as msg:
|
||||||
for i in range(0, size):
|
for i in range(0, size):
|
||||||
assert msg.structList[i].uInt8Field == 0
|
assert msg.structList[i].uInt8Field == 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user