Closed WesRoach closed 3 years ago
@WesRoach Haven’t had a chance to look too closely. Do you have any example of the formatting differences? My first guess is that the linting is failing since black uses line length of 88 and flake8 defaults to 79/80. I know we’ve configured our machines to have flake8 use 88, but I haven’t used GitHub Actions to know where those settings need to be defined.
@rileyschack It's in the Actions status page: https://github.com/WesRoach/pysoma/runs/1755137697?check_suite_focus=true
Basically Black appears to be formatting like the line size is <71?
@rileyschack Looking at the version installed via Actions and it's Python 3.9, and black v20.x. Locally I'm on Python3.8 and black 19.x Haven't tested it yet but perhaps the latest version has a new formatting rule.
@WesRoach black v19.10b0 introduced a new feature that a trailing comma will automatically “explode” a single line to multiple lines.
@rileyschack I'm not sure why, but the black formatter within Github's Actions is formatting quite a bit different than
pre-commit
andblack .
from my machine. Let me know if you have any ideas.