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

Black lint #3568

Merged
merged 9 commits into from
Apr 3, 2024
Merged

Black lint #3568

merged 9 commits into from
Apr 3, 2024

Conversation

cmaddalozzo
Copy link
Contributor

What this PR does / why we need it:
Auto-formats all Python code using black and adds a black linting job to GitHub actions.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #3567

Type of changes
Please delete options that are not relevant.

  • 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)
  • This change requires a documentation update
Auto-format all Python code

@tessapham
Copy link
Contributor

tessapham commented Apr 2, 2024

You'll probably need to revert changes to python/kserve/kserve/configuration.py and a bunch of other autogen files or run make generate, but make generate has been deleting files locally for me and not regenerating them.

Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>
Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>
Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>
Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>
Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>
Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>
Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>
Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>
Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>
@yuzisun
Copy link
Member

yuzisun commented Apr 3, 2024

/lgtm
/approve

Copy link

oss-prow-bot bot commented Apr 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cmaddalozzo, yuzisun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@oss-prow-bot oss-prow-bot bot added the approved label Apr 3, 2024
@yuzisun yuzisun merged commit 8350c7c into kserve:master Apr 3, 2024
56 checks passed
@grandbora
Copy link
Contributor

Thank you very much for doing this!

tjandy98 pushed a commit to tjandy98/kserve that referenced this pull request Apr 10, 2024
* Auto-format all Python files

Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>

* Use black for linting

Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>

* Don't run poetry check on root pyproject.toml

Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>

* Re-add flake8 linting

Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>

* Fix linting errors

Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>

* Add python path

Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>

* Fix linting

Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>

* Fix circular dependency

Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>

* Fix circular dependency

Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>

---------

Signed-off-by: Curtis Maddalozzo <cmaddalozzo@bloomberg.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use black to auto-format Python code
4 participants