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

chore: switch to isort from reorder python imports #1173

Merged
merged 5 commits into from
Mar 21, 2024

Conversation

jmeridth
Copy link
Contributor

So many files changes. "Gotta rip the bandaid off" 😄

  • keep it simple with just --profile black argument
  • update pull_request_template when asking for python-dateutil version
    • some engineers don't know to prefix dateutil with python-

This is a premptive strike on #1172 fix

Before opening a new issue, please search for a previously filed
issue to ensure you're not creating a duplicate.

Note Bug reports without the following will receive requests for these
details to be provided.

Version Information

Please provide:

  • The version of Python you're using (3.12.2)

  • The version of pip you used to install github3.py (24.0)

  • The version of github3.py (4.0.1), requests (2.31.0), uritemplate (4.1.1), and python-dateutil (2.9.0-post0) installed

Minimum Reproducible Example

Please provide an example of the code that generates the error you're seeing.

Exception information

What is exceptional about what you're seeing versus what you expected to see.

jmeridth and others added 2 commits March 21, 2024 04:25
- [x] keep it simple with just `--profile black` argument
- [x] update pull_request_template when asking for python-dateutil version
  - some engineers don't know to prefix `dateutil` with `python-`

This is a premptive strike on sigmavirus24#1172 fix

Signed-off-by: jmeridth <jmeridth@gmail.com>
@sigmavirus24
Copy link
Owner

Doesn't isort have a config for an import per line like reorder python imports?

jmeridth and others added 2 commits March 21, 2024 06:47
re-run black, hopefully get us to a non-conflict

Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth
Copy link
Contributor Author

That was not an issue locally:

✗ black src/github3/repos/branch.py
All done! ✨ 🍰 ✨
1 file left unchanged.

But I'll take it fixing it and now this is passing.

Copy link
Owner

@sigmavirus24 sigmavirus24 left a comment

Choose a reason for hiding this comment

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

Thanks for tackling this!

@sigmavirus24 sigmavirus24 merged commit 442d783 into sigmavirus24:main Mar 21, 2024
11 checks passed
@jmeridth
Copy link
Contributor Author

@sigmavirus24 nice change with force_single_line = true. Definitely less churn.

@jmeridth jmeridth deleted the jm-switch-to-isort branch March 21, 2024 12:02
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.

None yet

2 participants