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

Update to isort 5.8 #11204

Merged
merged 6 commits into from Apr 28, 2021
Merged

Update to isort 5.8 #11204

merged 6 commits into from Apr 28, 2021

Conversation

bryevdv
Copy link
Member

@bryevdv bryevdv commented Apr 26, 2021

A few comments on goals:

  • make all the individual .isort.cfg files as nearly identical as possible
    • examples and sphinx are identical, and a restricted to line length 88 since they need to be formatted in docs
    • bokeh and release are identical, and test almost so (it needs specual adds for local imports)
  • I used our 165 length for bokeh, release, and test for consistency, but I really don't like super long import lines. I do not ever want to to have to scroll horizontally to see imports. I used force_grid_wrap=5 which is not perfect, but seems OK

@mattpap we don't have to merge this especially soon, while so many PRs are in flight. But I did want to nail down a workable configuration (will keep looking for any tweaks to improve this as well)

bokeh/models/plots.py Outdated Show resolved Hide resolved
@mattpap
Copy link
Contributor

mattpap commented Apr 26, 2021

we don't have to merge this especially soon, while so many PRs are in flight.

Well, I would actually merge this sooner than later. I don't see too many PRs where this would be particularly conflicting.

@bryevdv
Copy link
Member Author

bryevdv commented Apr 26, 2021

@mattpap I've pushed a change with a wrap limit of 4 imports you can see if you like better.

@bryevdv
Copy link
Member Author

bryevdv commented Apr 26, 2021

I personally think the new value (4) is better

bokeh/util/string.py Outdated Show resolved Hide resolved
bryevdv and others added 2 commits April 27, 2021 09:32
Co-authored-by: Mateusz Paprocki <mattpap@gmail.com>
@bryevdv
Copy link
Member Author

bryevdv commented Apr 27, 2021

FYI I did have some conflicts rebasing this on latest, so I'd like to go ahead and merge this as-is and punt on any question or the docs/examples (if it is really a concern, an issue can be opened).

@mattpap mattpap merged commit dc42b28 into branch-2.4 Apr 28, 2021
@mattpap mattpap deleted the bryanv/10287_isort branch April 28, 2021 08:13
bryevdv added a commit that referenced this pull request Dec 13, 2021
* update examples

* use conda for 3.9 now

* use force_grid_wrap=4

* remove profile

* Update bokeh/util/string.py

Co-authored-by: Mateusz Paprocki <mattpap@gmail.com>

* add missing  boilerplate

Co-authored-by: Mateusz Paprocki <mattpap@gmail.com>
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.

Update to isort 5.7
2 participants