Upgrade tox and linter to conventions used by other projects#831
Upgrade tox and linter to conventions used by other projects#831
Conversation
| use_parentheses = true | ||
| include_trailing_comma = true | ||
| multi_line_output = 3 | ||
| profile = "black" |
There was a problem hiding this comment.
This was like the greatest addition to isort ever.
subdavis
left a comment
There was a problem hiding this comment.
Please fix string literal line wraps. Everything else looks good!
| "2,3.png,2,10,50,20,35,1,-1,type3,0.765,(kp) head 22.4534 45.6564," | ||
| "(kp) tail 55.232 22.3445", |
There was a problem hiding this comment.
I don't think this is OK style. Could you either come up with a way to let these string literals span their full width? I don't even care if you have to disable this rule for this file, this makes the code harder to read IMO.
There was a problem hiding this comment.
should the content for these tests be moved to ./testutils and loaded in like for the image-sort. Then you no longer are worrying about linting and formatting test data? You may lose the in-line comments though.
There was a problem hiding this comment.
They're paired input/expected, so you'd have to organize them as such.
I don't feel that strongly about it, but even if you moved these, you still couldn't have str literals longer than 100chars, which as a concept I would like to resolve.
| "0,1.png,0,884.66,510,1219.66,737.66,1,-1,typestring,1,(atr) DetectionNumber 2.002," | ||
| "(atr) DetectionPredefinedValue value1", | ||
| "0,2.png,1,111,222,3333,444,1,-1,typestring,1,(trk-atr) booleanAttr true," | ||
| "(atr) DetectionPredefinedValue value2", | ||
| "0,3.png,2,747,457,1039,633,1,-1,typestring,1,(trk-atr) booleanAttr true," | ||
| "(atr) DetectionPredefinedValue value3", | ||
| "0,3.png,3,884.66,510,1219.66,737.66,1,-1,typestring,1,(trk-atr) booleanAttr true," | ||
| "(atr) DetectionPredefinedValue value1", | ||
| "0,4.png,4,111,222,3333,444,1,-1,typestring,1,(atr) DetectionPredefinedValue value2", | ||
| "0,5.png,5,747,457,1039,633,1,-1,typestring,1,(atr) DetectionPredefinedValue value3", | ||
| "1,1.png,0,884.66,510,1219.66,737.66,1,-1,typestring,1,(atr) DetectionNumber 2.002,(atr) DetectionPredefinedValue value1", | ||
| "1,2.png,1,111,222,3333,444,1,-1,typestring,1,(trk-atr) booleanAttr true,(atr) DetectionPredefinedValue value2", | ||
| "1,3.png,2,747,457,1039,633,1,-1,typestring,1,(trk-atr) booleanAttr true,(atr) DetectionPredefinedValue value3", | ||
| "1,3.png,3,884.66,510,1219.66,737.66,1,-1,typestring,1,(trk-atr) booleanAttr true,(atr) DetectionPredefinedValue value1", | ||
| "1,1.png,0,884.66,510,1219.66,737.66,1,-1,typestring,1,(atr) DetectionNumber 2.002," | ||
| "(atr) DetectionPredefinedValue value1", | ||
| "1,2.png,1,111,222,3333,444,1,-1,typestring,1,(trk-atr) booleanAttr true," | ||
| "(atr) DetectionPredefinedValue value2", | ||
| "1,3.png,2,747,457,1039,633,1,-1,typestring,1,(trk-atr) booleanAttr true," | ||
| "(atr) DetectionPredefinedValue value3", | ||
| "1,3.png,3,884.66,510,1219.66,737.66,1,-1,typestring,1,(trk-atr) booleanAttr true," | ||
| "(atr) DetectionPredefinedValue value1", |
| "5,6.png,6,10,10,20,20,1,-1,type1,0.89,(atr) attrNAME spaced attr name," | ||
| "(trk-atr) booleanAttr true", |
| "0,1.png,0,884,510,1219,737,1.0,-1,typestring,1.0,(atr) detectionAttr frame 0 attr," | ||
| "(trk-atr) trackATTR TestTrack ATTR With Space", | ||
| "0,2.png,1,111,222,3333,444,1.0,-1,typestring,1.0,(atr) detectionAttr frame 1 attr," | ||
| "(trk-atr) trackATTR TestTrack ATTR With Space", |
|
Fixed the string wrapping and added the Also added the Finally changed the version number in |
Updated
toxto useflake8for the linter and changedblackandisortconfigurations to match linting and styling conventions used by all other projects for consistency (most noticeably changing line-length from 88 to 100).mypy's newest release allows configurations to be stored inpyproject.tomlinstead of requiring its ownmypy.ini.Cleaned up the
setup.pydev requirements as they are no longer needed sincetoxwill automatically install them in avirtualenvwrapper when needed.All changes made are purely linting fixes (most of which are by
blackandisortauto-formatting) such as: