Skip to content

chore: re-enable mccabe#596

Merged
faretek1 merged 16 commits intomainfrom
mccabe
May 4, 2026
Merged

chore: re-enable mccabe#596
faretek1 merged 16 commits intomainfrom
mccabe

Conversation

@faretek1
Copy link
Copy Markdown
Collaborator

@faretek1 faretek1 commented May 4, 2026

Solves issue #566

Changes

This PR re-enables the mccabe complexity check with ruff and resolves the existing functions which are too complex

Tests

N/A, would be checked by gh actions; there is work to be done there

@faretek1
Copy link
Copy Markdown
Collaborator Author

faretek1 commented May 4, 2026

force pushed because i forgot to fix the stats area in _update_from_dict

activity.py leaves a lot to be desired
@faretek1

This comment was marked as outdated.

i think this escapes stuff. we probably want that
not a great refactor but cli is low priority right now
@faretek1
Copy link
Copy Markdown
Collaborator Author

faretek1 commented May 4, 2026

sigh, the rest of the issues are in the editor submodule

@faretek1
Copy link
Copy Markdown
Collaborator Author

faretek1 commented May 4, 2026

tbh some of the base classes in editor/base are kinda useless. im not using the base classes for generic stuff so idk what the point is. might be worth getting rid of them. but i was planning on a rewrite of sa.editor in rust for other reasons as well. i am not sure if it is worth reducing the complexity of sa.editor.

@faretek1
Copy link
Copy Markdown
Collaborator Author

faretek1 commented May 4, 2026

i might just add some type: ignore comments around sa.editor to disable the mccabe complexity in there. because based on what I plan, it would become redundant soon anyway. unless someone else wants to change that.

I plan on a rewrite, not a refactor here

#596 (comment)
@faretek1 faretek1 marked this pull request as ready for review May 4, 2026 15:38
@faretek1 faretek1 merged commit f5fa7ab into main May 4, 2026
1 of 2 checks passed
@faretek1 faretek1 deleted the mccabe branch May 4, 2026 15:44
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