Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools/pythonlibs/riotctrl_*: add code format check with black #16915

Merged
merged 5 commits into from Oct 25, 2021

Conversation

aabadie
Copy link
Contributor

@aabadie aabadie commented Sep 29, 2021

Contribution description

This PR applies the black automatic code formater to riotctrl pythonlibs, similar to #16907 and #16905.

I couldn't a better solution on how to call black from the tox env. When black is called directly, the files with py are taken into account by default and specifying *.py, returns an error. Wrapping the call in bash works (only solution I found).

There's room to use f-strings in this code but it's not part of this PR.

Testing procedure

Green CI

Issues/PRs references

similar to #16907 and #16905

@aabadie aabadie added Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs labels Sep 29, 2021
@github-actions github-actions bot added Area: tests Area: tests and testing framework Area: tools Area: Supplementary tools labels Sep 29, 2021
@aabadie aabadie added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Sep 30, 2021
@aabadie aabadie requested a review from fjmolinas October 5, 2021 09:50
@fjmolinas
Copy link
Contributor

Should we skip string-normalization here?

@aabadie
Copy link
Contributor Author

aabadie commented Oct 22, 2021

ping @fjmolinas

@aabadie
Copy link
Contributor Author

aabadie commented Oct 23, 2021

@fjmolinas care to ACK this one ?

Copy link
Contributor

@fjmolinas fjmolinas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@aabadie aabadie merged commit d14f559 into RIOT-OS:master Oct 25, 2021
@aabadie aabadie deleted the pr/pythonlibs/black_format branch October 25, 2021 08:49
@fjmolinas fjmolinas added this to the Release 2022.01 milestone Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tests Area: tests and testing framework Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants