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

ci: Sort imports with isort #4003

Closed
wants to merge 4 commits into from
Closed

Conversation

frostming
Copy link
Contributor

Signed-off-by: Frost Ming [email protected]

What does this PR address?

Introduce isort as the formatter to fix the issue that ruff doesn't sort imports correctly(#3993)

@frostming frostming marked this pull request as ready for review June 28, 2023 08:22
@frostming frostming requested a review from a team as a code owner June 28, 2023 08:22
@frostming frostming requested review from larme and bojiang and removed request for a team June 28, 2023 08:22
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #4003 (1f30407) into main (8ef3c89) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #4003   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files        166     166           
  Lines      15286   15290    +4     
=====================================
- Misses     15286   15290    +4     
Impacted Files Coverage Δ
src/bentoml/__init__.py 0.00% <0.00%> (ø)
src/bentoml/_internal/cloud/__init__.py 0.00% <0.00%> (ø)
src/bentoml/_internal/cloud/bentocloud.py 0.00% <0.00%> (ø)
src/bentoml/_internal/cloud/client.py 0.00% <0.00%> (ø)
src/bentoml/_internal/cloud/config.py 0.00% <0.00%> (ø)
src/bentoml/_internal/cloud/deployment.py 0.00% <0.00%> (ø)
src/bentoml/_internal/cloud/schemas.py 0.00% <ø> (ø)
src/bentoml/_internal/cloud/yatai.py 0.00% <0.00%> (ø)
src/bentoml/_internal/configuration/containers.py 0.00% <0.00%> (ø)
src/bentoml/_internal/context.py 0.00% <0.00%> (ø)
... and 15 more

@aarnphm
Copy link
Contributor

aarnphm commented Jul 8, 2023

@frostming we need to do this https://beta.ruff.rs/docs/settings/#select

[tool.ruff]
extend-select = ["I"]

See the list of linter with ruff linter

@frostming
Copy link
Contributor Author

@frostming we need to do this https://beta.ruff.rs/docs/settings/#select

[tool.ruff]
extend-select = ["I"]

See the list of linter with ruff linter

Yeah, that works! See #4032

@aarnphm aarnphm closed this Jul 10, 2023
@frostming frostming deleted the lint/isort branch April 23, 2024 00:51
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.

2 participants