Skip to content

Resolve E203 errors #4902

Closed
Closed

Description

@ajpotts

For example:
arkouda/_version.py:148:57: E203 whitespace before ':'

Activity

  1. self-assigned this
    on Sep 13, 2025
  2. ajpotts commented on Oct 3, 2025

    @ajpotts
    ContributorAuthor

    Upon further investigation:

    This is a well-known incompatibility between Flake8 (pycodestyle) and Black/Ruff.

    Why it happens

    PEP 8 explicitly allows spaces around slice colons for readability:

    arr[1 : 5] # preferred by Black/Ruff

    pycodestyle (via Flake8 E203) flags that as an error ("whitespace before ':'").

    Black (and Ruff when using Black formatting rules) enforces the space before : in slices.

    So when you run both, they disagree.

    The solution is to intentionally ignore this error code in .flake8.

  3. added 2 commits that reference this issue on Oct 3, 2025
    02705d8
    31e397e
  4. added a commit that references this issue on Oct 8, 2025
    ef9f4d8
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