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.5
flake8
isort
License
GPL 2.0
Changelog
2.0.1 (2016-09-22)
Fix standard input processing. [carljm]
2.0 (2016-09-14)
Refactor code to handle flake8 version 3. [danpalmer]
Require flake8 version 3.0. [gforcada]
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-2.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ba87e4906abcdbec13804a0c9e84dd7a781a754098beac6a7bda6df3339e775 |
|
MD5 | e0944c3df73c9d4670e0f1c797a78ddc |
|
BLAKE2b-256 | 9c7739e99c49c84d303df44b187bf9a38ead23745be37756e1ca1fb86fb3d200 |