Skip to content

Lint with ruff's default rules - #33

Merged
youssefassis merged 1 commit into
mainfrom
style/ruff-default-rules
Oct 4, 2026
Merged

youssefassis merged 1 commit into
mainfrom
style/ruff-default-rules

Conversation

@youssefassis

Copy link
Copy Markdown
Owner

One commit. ruff check now uses ruff's default rules (E4, E7, E9, F) instead of E9 + pyflakes, like DeepAneDet and DeepAnePose; the code was already formatted.

The fixes are mechanical: one import per line, is not / not in tests, the two scheduler imports moved to the top of utils.py, isinstance instead of type(...) !=, no single-letter l names, and the experimental evaluate.py only catching file errors (it used a bare except).

No behaviour change: lint, format check and the 100 tests pass.

The lint used E9 and pyflakes only; it now uses ruff's default rules
(pycodestyle errors and pyflakes), like DeepAneDet and DeepAnePose. The
fixes are mechanical: one import per line, 'is not' / 'not in' tests,
imports at the top of utils.py, isinstance instead of type() !=, no
single-letter 'l' names, and the experimental evaluate.py only catching
file errors (it used a bare except). Behaviour is unchanged.
@youssefassis
youssefassis merged commit 1c4cd9c into main Oct 4, 2026
3 checks passed
@youssefassis
youssefassis deleted the style/ruff-default-rules branch October 4, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant