For example: `arkouda/_version.py:148:57: E203 whitespace before ':'`
Activity
ajpotts commentedon Oct 3, 2025
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.
Closes Bears-R-Us#4902: Resolve E203 errors
Closes Bears-R-Us#4902: Resolve E203 errors
Closes #4902: Resolve E203 errors (#4979)