Skip to content

More flake8 errors #4870

Closed
Closed

Description

@ajpotts

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


Activity

  1. self-assigned this
    on Sep 8, 2025
  2. added 2 commits that reference this issue on Sep 8, 2025
    324a19e
    6a39361
  3. added a commit that references this issue on Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions