Skip to content

refactor: split long functions into smaller functions#318

Merged
weibullguy merged 21 commits intomasterfrom
fix/no_blank_line_after_docstring
Jul 23, 2025
Merged

refactor: split long functions into smaller functions#318
weibullguy merged 21 commits intomasterfrom
fix/no_blank_line_after_docstring

Conversation

@weibullguy
Copy link
Member

@weibullguy weibullguy commented Jul 23, 2025

This a large refactoring of the code base to make things more maintainable. It splits long, complex functions into smaller functions that perform a single task. New modules are introduced to better group functions by their intended purpose. Added 243 new tests and rewrote the test files to use pytest's parametrize function along with toml files containing inputs and expected outputs for each test.

The following issues were also addressed by chance:
Closes #264
Closes #270
Closes #282

* Use TokenInfo objects directly instead of tuples with attributes from TokenInfo objects.
* Move non-formatting functions to other modules.
* Add functions to determine number of blank lines after docstring for modules, classes, functions, and attributes.
* Add function to update the token indices after removing unnecessary blank lines.
* Add method to insert appropriate number of blank lines after each type of docstring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant