This PR updates the python code-guidelines for this project from black 22.10 to black 23.1.
Motivation and Context
The recent black update did result in a failing test on our side (see #904, where no python files were changed, but the python linter check failed).
While we actually did fix the black-version in the github-workflow, the action defined under the tag black@22.10.0 did actually use the most recent black version (ver 23), due to a missing argument describing which version to use. :facepalm:
Thus, this PR updates the github-action to black@23.1.0 (major update), now additionally with the correct argument (version: 23.1.0), saves the reformatted code black 23 applied and adds a small note to CONTRIBUTING.md regarding the black version.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Code refactor or cleanup (changes to existing code for improved readability or performance)
Checklist:
[ ] I adapted the version number under py/visdom/VERSION according to Semantic Versioning
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
This PR updates the python code-guidelines for this project from black
22.10
to black23.1
.Motivation and Context
The recent black update did result in a failing test on our side (see #904, where no python files were changed, but the python linter check failed). While we actually did fix the black-version in the github-workflow, the action defined under the tag
black@22.10.0
did actually use the most recent black version (ver 23), due to a missing argument describing which version to use. :facepalm: Thus, this PR updates the github-action toblack@23.1.0
(major update), now additionally with the correct argument (version: 23.1.0
), saves the reformatted code black 23 applied and adds a small note toCONTRIBUTING.md
regarding the black version.Types of changes
Checklist:
py/visdom/VERSION
according to Semantic Versioning