argosopentech / argos-translate

Open-source offline translation library written in Python
https://www.argosopentech.com
MIT License
3.84k stars 280 forks source link

Improve imports #297

Open PJ-Finlay opened 2 years ago

PJ-Finlay commented 2 years ago

The Python imports are currently a mess I'd like to improve at some point. I can accept pull requests or suggestions for beat practices. Ideally we would use something that can be enforced with CI, I currently use the "black" tool to format the code but it doesn't organize the order of imports.

PJ-Finlay commented 2 years ago

PEP 8 import order

Imports should be grouped in the following order:

  1. Standard library imports.
  2. Related third party imports.
  3. Local application/library specific imports.