question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix import formatting using isort

See original GitHub issue

Following on from #23048. We now need to run isort on all *.py files in the codebase that we are ignoring in CI see here. Information on Isort here

Useful commands:

To sort imports in files in pandas directory ( ignoring those explicitly mentioned in setup.cfg) isort --recursive pandas

To check imports are formatted correctly: isort --recursive --check-only pandas

Find a directory you wish to fix from the list below( larger directories by # of files) And comment on here that you are working on fixing. To avoid duplicated efforts.

Directories we need to cover:

PRs must contain no more than 20 files.

For new contributors please first take a look at our Contributing Guide

Pandas-Dev: Could we please add the following labels “Style”, “Good first Issue”, Contributions Welcome" and any more you feel appropriate.

Thanks, Alistair

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:34 (32 by maintainers)

github_iconTop GitHub Comments

1reaction
thoocommented, Jan 1, 2019

@alimcmaster1 Working on

  • pandas/tests/frame/
  • pandas/tests/indexes/
  • pandas/tests/io
1reaction
alimcmaster1commented, Oct 28, 2018

Thanks both @sam-cohan and @streeck for looking to contribute! @streeck put you down initially for reshape and computation to give others the chance to contribute like i’ve said above. Thanks,

Read more comments on GitHub >

github_iconTop Results From Across the Web

isort
isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type. It provides a command...
Read more >
Use isort to sort your Python module imports automatically
isort is a Python library to sort imports alphabetically, and automatically separated into sections and by type. Image from Pixabay. Before we ...
Read more >
Sorting imports with isort — Perfect Python - YouTube
Welcome to Perfect Python, the series where I show you how to take your code to the next level — perfection. In this...
Read more >
Imports are incorrectly sorted and/or formatted | VS Code
I tried sorting the imports with isort but as it didn't work anymore I started sorting them manually which didn't help until I...
Read more >
How to Use Python isort Library
isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections. It'svery useful in Django ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found