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

format files by black inside integration_tests/build #3292

Merged
merged 1 commit into from Dec 2, 2022

Conversation

cm-iwata
Copy link
Contributor

@cm-iwata cm-iwata commented Nov 26, 2022

Changes

Specify black configration for check tests/integration_tests/build directory.
And also move pyproject.toml to project root.
Because black can't find conf file in tools/devctr/ directory.

Reason

Fixes #3166
By default black exclude build directory.

https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#command-line-options

We can override default config via pyproject.toml.
https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

PR Checklist

  • All commits in this PR are signed (git commit -s).
  • If a specific issue led to this PR, this PR closes the issue.
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • New unsafe code is documented.
  • API changes follow the Runbook for Firecracker API changes.
  • User-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

  • This functionality can be added in rust-vmm.

pyproject.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@roypat roypat left a comment

Choose a reason for hiding this comment

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

Hey,
good catch noticing that the build tests weren't being formatted! And thanks for directly submitting a fix. I only left a small comment (which is mostly to me being unfamiliar with python tooling), but overall looks pretty good to me!

pyproject.toml Outdated Show resolved Hide resolved
roypat
roypat previously approved these changes Dec 2, 2022
@roypat
Copy link
Contributor

roypat commented Dec 2, 2022

Looks good to me now! Could you squash your commits into one?

fix firecracker-microvm#3166
By default black exclude `build` directory.
We can override default config via pyproject.toml.

[1]: https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file

Signed-off-by: Tomoya <iwata.tomoya@classmethod.jp>
@cm-iwata
Copy link
Contributor Author

cm-iwata commented Dec 2, 2022

@roypat
squashed my commits!

@cm-iwata cm-iwata requested a review from roypat December 2, 2022 10:08
@pb8o pb8o merged commit 646cd02 into firecracker-microvm:main Dec 2, 2022
@pb8o
Copy link
Contributor

pb8o commented Dec 2, 2022

Thank you for the contribution @cm-iwata !

@cm-iwata cm-iwata deleted the fix/black branch December 2, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Black does not format files inside integration_tests/build
3 participants