Commit 926d9f0
authored
refactor: split long functions into smaller functions (#318)
* refactor: split long functions/methods into smaller functions
* 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.
* refactor: add new module with functions for classifying docstring types
* refactor: add new module with constant values
* refactor: add new module with functions for detecting various types of patterns
* refactor: add new module with functions for wrapping various elements
* refactor: move string manipulation functions from syntax module
* refactor: add function to have field lists take precedence over URL strings
* chore: add copyright info for new maintainer
* refactor: rename attributes
* chore: add integration test mark
* test: update and add tests for format module
* test: update and add tests for encoding module
* test: update and add tests for string module
* test: update and add tests for utility module
* test: update and add tests for configuration module
* test: update and add tests for docformatter end-to-end
* test: add tests for classify module
* test: add tests for classify module
* test: add tests for wrapper package
* test: update end-to-end tests
* test: update expected value for all Python versions1 parent fe1a85f commit 926d9f0
File tree
86 files changed
+10038
-8730
lines changed- src/docformatter
- patterns
- wrappers
- tests
- _data
- string_files
- formatter
- patterns
- wrappers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
86 files changed
+10038
-8730
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
| 221 | + | |
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
| |||
230 | 233 | | |
231 | 234 | | |
232 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
233 | 243 | | |
234 | 244 | | |
235 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | | - | |
32 | 39 | | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
37 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
138 | | - | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
26 | 30 | | |
0 commit comments