Check for import order automatically

NEW
Unassigned

Status

developer.mozilla.org
Code Cleanup
3 years ago
4 months ago

People

(Reporter: jezdez, Unassigned)

Tracking

Details

(Whiteboard: [specification][type:change])

(Reporter)

Description

3 years ago
What feature should be changed? Please provide the URL of the feature if possible.
==================================================================================
There is a great tool called isort that allows checking for common types of import order pattern that I believe would help us keep the imports in Python sane.

What problems would this solve?
===============================
Less oddities and more best practices.

Who would use this?
===================
devs and Travis-CI

What would users see?
=====================
n/a

What would users do? What would happen as a result?
===================================================
n/a

Is there anything else we should know?
======================================
(Reporter)

Updated

3 years ago
Assignee: nobody → jezdez
(Reporter)

Updated

3 years ago
Status: NEW → ASSIGNED
(Reporter)

Updated

3 years ago
Component: General → Code Cleanup
(Reporter)

Updated

2 years ago
Assignee: jezdez → nobody
Status: ASSIGNED → NEW
We're looking at this again. A pyflakes plugin looks promising, and the cryptography style is my favorite:

https://github.com/PyCQA/flake8-import-order
You need to log in before you can comment on or make changes to this bug.