Repository navigation
Closed
Description
Fix some flake8 errors seen on main:
:~/git/arkouda$ flake8
./tests/checkpoint_test.py:129:13: B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
./tests/checkpoint_test.py:150:13: B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
./tests/checkpoint_test.py:164:13: B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
./tests/checkpoint_test.py:174:13: B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
./tests/numpy/pdarray_creation_test.py:177:45: B023 Function definition does not bind loop variable 'shape'.
./tests/numpy/pdarray_creation_test.py:178:64: B023 Function definition does not bind loop variable 'shape'.
./tests/numpy/pdarray_creation_test.py:179:47: B023 Function definition does not bind loop variable 'shape'.
./tests/numpy/pdarray_creation_test.py:180:55: B023 Function definition does not bind loop variable 'shape'.
./tests/numpy/pdarray_creation_test.py:181:45: B023 Function definition does not bind loop variable 'shape'.
./tests/numpy/pdarray_creation_test.py:182:65: B023 Function definition does not bind loop variable 'shape'.
./tests/numpy/pdarray_creation_test.py:183:64: B023 Function definition does not bind loop variable 'shape'.
./tests/numpy/pdarray_creation_test.py:184:64: B023 Function definition does not bind loop variable 'shape'.
./tests/numpy/pdarray_creation_test.py:185:54: B023 Function definition does not bind loop variable 'local_size'.
./tests/numpy/pdarray_creation_test.py:185:66: B023 Function definition does not bind loop variable 'shape'.
./tests/optioned-server/heartbeat.py:34:13: B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
./tests/pandas/index_test.py:290:13: B015 Result of comparison is not used. This line doesn't do anything. Did you intend to prepend it with assert?
./tests/pandas/index_test.py:293:13: B015 Result of comparison is not used. This line doesn't do anything. Did you intend to prepend it with assert?
./tests/regex_test.py:77:50: B034 subn should pass `count` and `flags` as keyword arguments to avoid confusion due to unintuitive argument positions.
./tests/regex_test.py:188:54: B034 split should pass `maxsplit` and `flags` as keyword arguments to avoid confusion due to unintuitive argument positions.
s:~/git/arkouda$ flake8 --version
7.3.0 (darglint: 1.8.1, flake8-bugbear: 24.12.12, flake8-builtins: 2.5.0, flake8-docstrings: 1.7.0, flake8_import_order: 0.19.2, mccabe: 0.7.0, pycodestyle:
2.14.0, pydoclint: 0.6.6, pyflakes: 3.4.0) CPython 3.13.5 on Linux
Metadata
Metadata
Assignees
Labels
No labels
Activity
Closes Bears-R-Us#4870: More flake8 errors
Closes Bears-R-Us#4870: More flake8 errors
Flake8 errors (#4871)