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

Supplement isort options #3266

Closed
wants to merge 1 commit into from
Closed

Conversation

moreal
Copy link

@moreal moreal commented Feb 28, 2023

This pull request is related to the #1749 issue but it doesn't resolve the problem perfectly yet. I opened this pull request to check the intermediate stage with reviewing.

I referenced https://github.com/PyCQA/isort/blob/3a72e069635a865a92b8a0273aa829f630cbcd6f/isort/settings.py source file.

pub reverse_relative: bool,
#[serde(default)]
pub force_single_line: bool,
#[serde(default)]
Copy link
Member

Choose a reason for hiding this comment

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

These may all need the alias = "single-line-exclusions", alias = "single_line_exclusions" treatment as seen in src_paths, to respect isort's acceptance of either casing style.

Copy link
Author

Choose a reason for hiding this comment

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

I added such aliases too! Thanks! 🙏🏻

@charliermarsh
Copy link
Member

Seems like a reasonable start! I might suggest only implementing those options that we support within Ruff for now, to make things easier. see: https://beta.ruff.rs/docs/settings/#isort.

@moreal moreal marked this pull request as draft March 4, 2023 08:39
@moreal moreal marked this pull request as draft March 4, 2023 08:39
@moreal moreal force-pushed the isort-options branch 4 times, most recently from ddb2d61 to 14b2eb3 Compare March 4, 2023 09:10
@moreal
Copy link
Author

moreal commented Mar 4, 2023

Seems like a reasonable start! I might suggest only implementing those options that we support within Ruff for now, to make things easier. see: https://beta.ruff.rs/docs/settings/#isort.

Thank you for your suggestion. I added more options from https://beta.ruff.rs/docs/settings/#isort and clean up other options, not in the document. 🙏🏻

@moreal moreal requested a review from charliermarsh March 4, 2023 09:11
@moreal moreal marked this pull request as ready for review March 4, 2023 09:11
@moreal moreal marked this pull request as draft March 4, 2023 14:37
@charliermarsh
Copy link
Member

I'm going to close this for now, just to keep the open PR list tight. If you choose to return to this, we can always reopen!

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