flake8 plugin that integrates isort .
Project description
Flake8 meet isort
Use isort to check if the imports on your python files are sorted the way you expect.
Add an .isort.cfg to define how you want your imports sorted and run flake8 as you usually do.
See isort documentation for .isort.cfg available options.
Install
Install with pip:
$ pip install flake8-isort
Options
Since version 1.0 a check for an .isort.cfg file is done, since version 1.1 setup.cfg is also checked for an [isort] section.
This potentially avoids to lint a project that has no formal definition of how import should be sorted.
With either --no-isort-config command line switch, or no-isort-config flake8 configuration option it can be disabled.
Requirements
Python 2.7, 3.3, 3.4
flake8
isort
License
GPL 2.0
Changelog
1.3 (2016-06-20)
Make error messages clearer. [do3cc]
Use either pep8 or pycodestyle (new name for pep8). [Maxim Novikov]
Fix coveralls. [gforcada]
1.2 (2016-03-05)
Allow stdin processing, this way text editor can pass input to flake8. [mjacksonw]
1.1.1 (2016-02-16)
Silence isort messages. [gforcada]
Improve wording. [gforcada]
1.1 (2016-02-16)
Check for isort configuration on setup.cfg as well. [plumdog]
1.0 (2015-12-16)
Check for an isort configuration file. [gforcada]
0.2 (2015-09-14)
Fix entry point. [gforcada]
0.1.post0 (2015-09-13)
Release wheels as well. [gforcada]
0.1 (2015-09-13)
Initial release [gforcada]
Add all boilerplate files. [gforcada]
Create the flake8 plugin per se. [gforcada]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for flake8_isort-1.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3fd1e9be3dc8debab75a821b586f114f7d28bb744b9031f534253beebcdd115 |
|
MD5 | 0d4c5627281962ece430f6697957dfbc |
|
BLAKE2b-256 | 028f5ba07bae9ed9abdb6bfdac187ecaec7a610cd336ec8b9d43979baa728002 |