RevisionMessageAuthorDateNumber of OperandsNumber of Operatorsblank linesMulti-line commentsCyclomatic ComplexityDifficultyEffortUnique OperandsUnique OperatorsLength of applicationL Lines of CodeLines of CodeMaintainability IndexMulti linesSingle comment linesS Lines of CodeUnique vocabulary (h1 + h2)Code volume
b1d17efFix comment handling when parenthesising conditionShantanu2024-01-01254 (0)514 (0)222 (0)189 (+1)426 (0)11.4222 (0.0)76533.8 (0.0)18 (0)405 (0)768 (0)820 (+3)1742 (+4)0 (0)108 (0)169 (+1)1243 (+3)423 (0)6700.43 (0.0)
db9c592Unify docstring detection (#4095) Co-authored-by:Jelle Zijlstra2023-12-28254 (0)514 (0)222 (0)188 (0)426 (-1)11.4222 (0.0)76533.8 (0.0)18 (0)405 (0)768 (0)817 (0)1738 (0)0 (0)108 (0)168 (0)1240 (0)423 (0)6700.43 (0.0)
eb7661fFix another case where we format dummy implementatJelle Zijlstra2023-12-11254 (0)514 (0)222 (0)188 (0)427 (0)11.4222 (0.0)76533.8 (0.0)18 (0)405 (0)768 (0)817 (+3)1738 (+2)0 (0)108 (0)168 (0)1240 (+2)423 (0)6700.43 (0.0)
50d5756fix crash in preview mode with --line-length=1 (#4John Litborn2023-12-05254 (+2)514 (+3)222 (0)188 (0)427 (+1)11.4222 (-0.0180763)76533.8 (+467.568)18 (0)405 (+3)768 (+5)814 (0)1736 (0)0 (0)108 (0)168 (0)1238 (0)423 (+3)6700.43 (+51.4573)
fb5e5d2Prefer more equal signs before a break when splittHenri Holopainen2023-11-23252 (+5)511 (+8)222 (+2)188 (-3)426 (+5)11.4403 (-0.020461)76066.2 (+1370.71)18 (0)402 (+7)763 (+13)814 (+12)1736 (+24)0 (0)108 (+1)168 (+4)1238 (+17)420 (+7)6648.97 (+131.471)
89e28eaPermit standalone form feed characters at the modutungol2023-11-21247 (-6)503 (-10)220 (-4)191 (-1)421 (-3)11.4608 (-0.0243151)74695.5 (-1968.68)18 (0)395 (-7)750 (-16)802 (-11)1712 (-19)0 (0)107 (-4)164 (-1)1221 (-10)413 (-7)6517.5 (-157.614)
11da02dHandle more huggable immediately nested parens/braYilei Yang2023-11-18253 (+5)513 (+9)224 (+1)192 (+2)424 (+9)11.4851 (-0.0863539)76664.2 (+1137.8)18 (0)402 (+10)766 (+14)813 (+24)1731 (+41)0 (0)111 (0)165 (+1)1231 (+39)420 (+10)6675.11 (+148.143)
66008fd[563] Fix standalone comments inside complex blockHenri Holopainen2023-11-07248 (-1)504 (-2)223 (0)190 (-1)415 (-1)11.5714 (+0.0130529)75526.4 (-277.03)18 (0)392 (-2)752 (-3)789 (0)1690 (-2)0 (0)111 (0)164 (0)1192 (-2)410 (-2)6526.97 (-31.3389)
50ed622Fix long case blocks not split into multiple linesrdrll2023-11-07249 (+8)506 (+20)223 (+2)191 (+5)416 (+8)11.5584 (+0.0174785)75803.4 (+3370.55)18 (0)394 (+15)755 (+28)789 (+4)1692 (+22)0 (0)111 (0)164 (+4)1194 (+16)412 (+15)6558.31 (+282.12)
c54c213Fix crash on await (a ** b) (#3994) Jelle Zijlstra2023-11-03241 (+2)486 (+5)221 (0)186 (-1)408 (+2)11.5409 (-0.065001)72432.8 (+476.987)18 (0)379 (+6)727 (+7)785 (-5)1670 (-2)0 (0)111 (0)160 (-1)1178 (-1)397 (+6)6276.19 (+76.2497)
e501103Produce equivalent code for docstrings containing Henri Holopainen2023-10-31239 (0)481 (0)221 (0)187 (0)406 (0)11.6059 (0.0)71955.8 (0.0)18 (0)373 (0)720 (0)790 (+1)1672 (+1)0 (0)111 (0)161 (0)1179 (+1)391 (0)6199.94 (0.0)
ddfecf0Hug parens also with multiline unpacking (#3992) Henri Holopainen2023-10-30239 (+3)481 (+6)221 (0)187 (0)406 (+1)11.6059 (+0.0829871)71955.8 (+1468.15)18 (0)373 (+2)720 (+9)789 (+1)1671 (+1)0 (0)111 (0)161 (0)1178 (+1)391 (+2)6199.94 (+82.7595)
1d4c31a[925] Improve multiline dictionary and list indentHenri Holopainen2023-10-25236 (+13)475 (+24)221 (+2)187 (0)405 (+6)11.5229 (+0.153163)70487.7 (+4961.53)18 (0)371 (+14)711 (+37)788 (+8)1670 (+13)0 (0)111 (0)161 (0)1177 (+11)389 (+14)6117.18 (+353.975)
882d879Fix merging implicit multiline strings that have iHenri Holopainen2023-10-20223 (+1)451 (+2)219 (0)187 (0)399 (+1)11.3697 (-0.0133507)65526.2 (+273.987)18 (0)357 (+2)674 (+3)780 (0)1657 (+1)0 (0)111 (0)161 (0)1166 (+1)375 (+2)5763.2 (+30.829)
1648ac5Fix long lines with power operator(s) getting spliHenri Holopainen2023-10-16222 (+2)449 (+4)219 (+3)187 (+2)398 (+4)11.3831 (+0.00525768)65252.2 (+701.496)18 (0)355 (+3)671 (+6)780 (+6)1656 (+19)0 (0)111 (0)161 (+2)1165 (+14)373 (+3)5732.37 (+59.0057)
b7717c3Standardise newlines after module-level docstringsDaniƫl van Noord2023-10-09220 (0)445 (0)216 (+1)185 (0)394 (0)11.3778 (0.0)64550.7 (0.0)18 (0)352 (0)665 (0)774 (0)1637 (+1)0 (0)111 (0)159 (0)1151 (0)370 (0)5673.37 (0.0)
36078bcrespect magic trailing commas in return types (#39John Litborn2023-10-04220 (+7)445 (+13)215 (+6)185 (+4)394 (+8)11.3778 (-0.0574532)64550.7 (+1976.06)18 (0)352 (+12)665 (+20)774 (+19)1636 (+34)0 (0)111 (+3)159 (+4)1151 (+21)370 (+12)5673.37 (+201.307)
8c5d96ffix indentation of line breaks in long type hints John Litborn2023-09-22213 (0)432 (0)209 (+6)181 (+1)386 (+4)11.4353 (0.0)62574.6 (0.0)18 (0)340 (0)645 (0)755 (+11)1602 (+26)0 (0)108 (+8)155 (+1)1130 (+11)358 (0)5472.06 (0.0)
c160e4bMore concise formatting for dummy implementations Shantanu2023-08-03213 (0)432 (0)203 (0)180 (0)382 (+3)11.4353 (0.0)62574.6 (0.0)18 (0)340 (0)645 (0)744 (0)1576 (+4)0 (0)100 (0)154 (0)1119 (+4)358 (0)5472.06 (0.0)
63481bbFix a magical comment caused internal error (#3740rdrll2023-06-27213 (+1)432 (+1)203 (0)180 (+2)379 (+1)11.4353 (-0.00718376)62574.6 (+184.533)18 (0)340 (+1)645 (+2)744 (+1)1572 (+6)0 (0)100 (0)154 (0)1115 (+6)358 (+1)5472.06 (+19.5625)
01b8d3dDo not add trailing commas to return type annotatiYilei "Dolee" Yang2023-06-15212 (+3)431 (+7)203 (0)178 (+2)378 (+3)11.4425 (-0.0169816)62390.1 (+1056.52)18 (0)339 (+6)643 (+10)743 (0)1566 (+7)0 (0)100 (0)154 (0)1109 (+7)357 (+6)5452.5 (+100.277)
3aad6e3Add support for PEP 695 syntax (#3703) Jelle Zijlstra2023-06-01209 (0)424 (0)203 (+3)176 (0)375 (+2)11.4595 (0.0)61333.6 (0.0)18 (0)333 (0)633 (0)743 (+9)1559 (+12)0 (0)100 (0)154 (0)1102 (+9)351 (0)5352.22 (0.0)
fc6cea0Consistently format async statements similar to thYilei "Dolee" Yang2023-03-16209 (0)424 (0)200 (+1)176 (+4)373 (+5)11.4595 (0.0)61333.6 (0.0)18 (0)333 (0)633 (0)734 (+5)1547 (+15)0 (0)100 (0)154 (+4)1093 (+10)351 (0)5352.22 (0.0)
d16a1dbConsistently wrap two context managers in parens (Yilei "Dolee" Yang2023-03-10209 (0)424 (0)199 (-3)172 (0)368 (-1)11.4595 (0.0)61333.6 (0.0)18 (0)333 (0)633 (0)729 (-13)1532 (-10)0 (0)100 (0)150 (-1)1083 (-6)351 (0)5352.22 (0.0)
4a063a9Improve multiline string handling (#1879) Co-authAneesh Agrawal2023-03-07209 (0)424 (0)202 (0)172 (0)369 (0)11.4595 (0.0)61333.6 (0.0)18 (0)333 (0)633 (0)742 (0)1542 (-5)0 (0)100 (0)151 (0)1089 (-5)351 (0)5352.22 (0.0)
ff53fc1Actually add trailing commas to collection literalmainj122023-02-05209 (+7)424 (+14)202 (+5)172 (0)369 (+7)11.4595 (-0.180919)61333.6 (+1578.08)18 (0)333 (+16)633 (+21)742 (+11)1547 (+30)0 (0)100 (0)151 (0)1094 (+25)351 (+16)5352.22 (+218.756)
c4bd2e3Draft for Black 2023 stable style (#3418) Jelle Zijlstra2023-01-31202 (-2)410 (-6)197 (0)172 (-4)362 (-9)11.6404 (+0.0130494)59755.5 (-867.335)18 (0)317 (-5)612 (-8)731 (-11)1517 (-23)0 (0)100 (0)151 (-4)1069 (-19)335 (-5)5133.47 (-80.3558)
226cbf0Fix unsafe cast in linegen.py w/ await yield handlJelle Zijlstra2023-01-30204 (0)416 (0)197 (0)176 (0)371 (+1)11.6273 (0.0)60622.8 (0.0)18 (0)322 (0)620 (0)742 (+1)1540 (+1)0 (0)100 (0)155 (0)1088 (+1)340 (0)5213.82 (0.0)
eabff67Format hex code in unicode escape sequences in strShivansh-0072023-01-22204 (0)416 (0)197 (+1)176 (0)370 (+2)11.6273 (0.0)60622.8 (0.0)18 (0)322 (0)620 (0)741 (+2)1539 (+4)0 (0)100 (0)155 (0)1087 (+3)340 (0)5213.82 (0.0)
91e1e13Wrap multiple context managers in parentheses whenYilei "Dolee" Yang2023-01-20204 (+8)416 (+18)196 (+7)176 (+15)368 (+11)11.6273 (+0.49904)60622.8 (+5583.43)18 (+1)322 (+18)620 (+26)739 (+24)1535 (+61)0 (0)100 (+3)155 (+14)1084 (+37)340 (+19)5213.82 (+267.923)
7e6d3faFix crash with walrus + await + with (#3473) FixeJelle Zijlstra2023-01-18196 (0)398 (+1)189 (0)161 (0)357 (+1)11.1283 (-0.00867422)55039.4 (+79.5575)17 (0)304 (+1)594 (+1)715 (0)1474 (+4)0 (0)97 (0)141 (0)1047 (+4)321 (+1)4945.9 (+10.9958)
60a2e8eFix two docstring crashes (#3451) Jelle Zijlstra2023-01-16196 (0)397 (0)189 (0)161 (0)356 (+2)11.137 (0.0)54959.8 (0.0)17 (0)303 (0)593 (0)715 (+2)1470 (+4)0 (0)97 (0)141 (0)1043 (+4)320 (0)4934.9 (0.0)
4e3303fParenthesize conditional expressions (#2278) Co-aJordan Ephron2022-12-29196 (0)397 (0)189 (+4)161 (0)354 (+4)11.137 (0.0)54959.8 (0.0)17 (0)303 (0)593 (0)713 (+10)1466 (+16)0 (0)97 (0)141 (+1)1039 (+11)320 (0)4934.9 (0.0)
159984aCheck stability for both preview and non-preview sJelle Zijlstra2022-12-17196 (0)397 (0)185 (0)161 (0)350 (0)11.137 (0.0)54959.8 (0.0)17 (0)303 (0)593 (0)703 (0)1450 (+2)0 (0)97 (0)140 (0)1028 (+2)320 (0)4934.9 (0.0)
7816393Fix an infinite recursion error exposed by #3440 (Yilei "Dolee" Yang2022-12-16196 (+1)397 (+3)185 (0)161 (0)350 (+1)11.137 (+0.0107178)54959.8 (+482.535)17 (0)303 (+2)593 (+4)703 (+1)1448 (+2)0 (0)97 (0)140 (0)1026 (+2)320 (+2)4934.9 (+38.6153)
aafc21aPrefer splitting right hand side of assignment staYilei "Dolee" Yang2022-12-15195 (+16)394 (+36)185 (+10)161 (+15)349 (+21)11.1262 (-0.102536)54477.3 (+5213.83)17 (0)301 (+30)589 (+52)702 (+32)1446 (+92)0 (0)97 (+8)140 (+2)1024 (+72)318 (+30)4896.29 (+509.038)
658c8d8Improve long values in dict literals (#3440) Yilei "Dolee" Yang2022-12-15179 (0)358 (0)175 (+1)146 (0)328 (+8)11.2288 (0.0)49263.5 (0.0)17 (0)271 (0)537 (0)670 (+12)1354 (+17)0 (0)89 (0)138 (0)952 (+16)288 (0)4387.25 (0.0)
7d062ecDo not put the closing quotes in a docstring on a Jelle Zijlstra2022-12-13179 (0)358 (0)174 (-1)146 (-1)320 (0)11.2288 (0.0)49263.5 (0.0)17 (0)271 (0)537 (0)658 (-2)1337 (-1)0 (0)89 (0)138 (-1)936 (+1)288 (0)4387.25 (0.0)
8091b25Correctly handle trailing commas that are inside aYilei "Dolee" Yang2022-11-09179 (+6)358 (+12)175 (+3)147 (0)320 (+3)11.2288 (+0.00359145)49263.5 (+1933.36)17 (0)271 (+9)537 (+18)660 (+9)1338 (+44)0 (0)89 (+3)139 (0)935 (+38)288 (+9)4387.25 (+170.831)
411ed77Bump pre-commit hooks (#3191) Richard Si2022-07-27173 (0)346 (0)172 (-2)147 (0)317 (0)11.2252 (0.0)47330.1 (0.0)17 (0)262 (0)519 (0)651 (-11)1294 (+29)0 (0)86 (0)139 (0)897 (+31)279 (0)4216.42 (0.0)
e0a780aAdd isort to linting toolchain Co-authored-by: ShRichard Si2022-07-27173 (0)346 (0)174 (+2)147 (0)317 (0)11.2252 (0.0)47330.1 (0.0)17 (0)262 (0)519 (0)662 (+11)1265 (-29)0 (0)86 (0)139 (0)866 (-31)279 (0)4216.42 (0.0)
44d5da0Reformat codebase with isort Richard Si2022-07-27173 (0)346 (0)172 (-2)147 (0)317 (0)11.2252 (0.0)47330.1 (0.0)17 (0)262 (0)519 (0)651 (-11)1294 (+29)0 (0)86 (0)139 (0)897 (+31)279 (0)4216.42 (0.0)
6ea4eddFix the handling of `# fmt: skip` when it's at a cYilei "Dolee" Yang2022-07-19173 (0)346 (0)174 (0)147 (+2)317 (+1)11.2252 (0.0)47330.1 (0.0)17 (0)262 (0)519 (0)662 (0)1265 (+2)0 (0)86 (0)139 (+2)866 (0)279 (0)4216.42 (0.0)
ad5c315Actually disable docstring prefix normalization wiRichard Si2022-07-14173 (0)346 (0)174 (0)145 (+10)316 (+2)11.2252 (0.0)47330.1 (0.0)17 (0)262 (0)519 (0)662 (+7)1263 (+17)0 (0)86 (0)137 (+10)866 (+7)279 (0)4216.42 (0.0)
4f0532dDon't (ever) put a single-char closing docstring qRichard Si2022-07-13173 (0)346 (0)174 (0)135 (+1)314 (+1)11.2252 (0.0)47330.1 (0.0)17 (0)262 (0)519 (0)655 (0)1246 (+1)0 (0)86 (0)127 (+1)859 (0)279 (0)4216.42 (0.0)
20d8ccbPut closing quote on a separate line if docstring Iain Dorrington2022-05-08173 (0)346 (0)174 (+3)134 (+9)313 (+4)11.2252 (0.0)47330.1 (0.0)17 (0)262 (0)519 (0)655 (+10)1245 (+22)0 (0)86 (0)126 (+9)859 (+10)279 (0)4216.42 (0.0)
7f7673dSupport 3.11 / PEP 654 syntax (#3016) Batuhan Taskaya2022-04-15173 (+4)346 (+9)171 (0)125 (+3)309 (+3)11.2252 (+0.122478)47330.1 (+1806.06)17 (0)262 (+4)519 (+13)645 (+2)1223 (+9)0 (0)86 (0)117 (+3)849 (+6)279 (+4)4216.42 (+116.155)
75f99bdRemove redundant parentheses around awaited coroutJoe Young2022-04-09169 (+11)337 (+21)171 (+4)122 (+8)306 (+10)11.1027 (+0.139448)45524.1 (+3777.66)17 (0)258 (+13)506 (+32)643 (+17)1214 (+39)0 (-0.451158)86 (0)114 (+8)843 (+27)275 (+13)4100.26 (+292.421)
98fccceBetter manage return annotation brackets (#2990) Joe Young2022-04-09158 (0)316 (+1)167 (+3)114 (+1)296 (+10)10.9633 (-0.0100953)41746.4 (+78.3476)17 (0)245 (+1)474 (+1)626 (+20)1175 (+29)0.451158 (-1.93154)86 (0)106 (+2)816 (+24)262 (+1)3807.84 (+10.643)
24c708eRemove unnecessary parentheses from `with` statemeJoe Young2022-04-03158 (+12)315 (+24)164 (+1)113 (+19)286 (+18)10.9734 (+0.172051)41668 (+4178)17 (0)244 (+15)473 (+36)606 (+17)1146 (+60)2.3827 (-2.39489)86 (0)104 (+17)792 (+42)261 (+15)3797.2 (+326.321)
bd1e980Remove unnecessary parentheses from `except` clausJoe Young2022-03-26146 (0)291 (0)163 (0)94 (0)268 (+2)10.8013 (0.0)37490 (0.0)17 (0)229 (0)437 (0)589 (+3)1086 (+5)4.77759 (-0.235191)86 (0)87 (0)750 (+5)246 (0)3470.88 (0.0)
14e5ce5Remove unnecessary parentheses from tuple unpackinJoe Young2022-03-24146 (+5)291 (+13)163 (0)94 (0)266 (+6)10.8013 (-0.0381395)37490 (+1717.03)17 (0)229 (+11)437 (+18)586 (+4)1081 (+18)5.01278 (-1.16955)86 (0)87 (0)745 (+18)246 (+11)3470.88 (+170.618)
3800ebdAvoid magic-trailing-comma in single-element subscJoe Young2022-03-23141 (0)278 (0)163 (0)94 (0)260 (0)10.8394 (0.0)35773 (0.0)17 (0)218 (0)419 (0)582 (0)1063 (+5)6.18233 (-0.0533961)86 (0)87 (0)727 (+5)235 (0)3300.26 (0.0)
f87df0edont skip formatting #%% (#2919) Fixes #2588Marco Edward Gorelli2022-03-21141 (0)278 (0)163 (0)94 (0)260 (0)10.8394 (0.0)35773 (0.0)17 (0)218 (0)419 (0)582 (0)1058 (+4)6.23572 (-0.0428849)86 (0)87 (0)722 (+4)235 (0)3300.26 (0.0)