redhat-exd-rebuilds / freshmaker

Freshmaker is a service that automatically rebuilds content.
https://redhat-exd-rebuilds.github.io/freshmaker/
MIT License
9 stars 23 forks source link

Black-reformat step in tox #250

Closed FernandesMF closed 1 year ago

FernandesMF commented 1 year ago

Freshmaker is currently using a black-check step in tox. That means that black will check if it would reformat some file, and exits an error in case it would.

However, it would also be nice to have black actually reformat files during development, using the same parameters as will the check step.

This commit introduces the black-reformat in tox, which can be called manually during development to make the actual reformatting. It also introduces quick instructions on how to call it the readme file.

JIRA: CWFHEALTH-2357

tonisbones commented 1 year ago

LGTM. Thanks Mario!