-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add isort in pre commit configuration file #2805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
PCManticore
merged 9 commits into
pylint-dev:master
from
Pierre-Sassoulas:add-isort-in-pre-commit
Mar 20, 2019
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
84ab8b1
Feat - Add isort in the pre-commit configuration
Pierre-Sassoulas f69341f
Chore - Update black and pre-commit in configuration
Pierre-Sassoulas cf76484
Style - Apply isort on all apllicable files
Pierre-Sassoulas 318ccd6
Style - Re-Apply black following the isort cleanup
Pierre-Sassoulas 2d954bd
Fix - C0412: Imports from package x are not grouped
Pierre-Sassoulas 0b250ae
Fix - An error added when applying isort/black everywhere
Pierre-Sassoulas 44e4c69
Fix - A problem with comment handling in import
Pierre-Sassoulas 5f3491b
Doc - Add isort in the contribution doc
Pierre-Sassoulas 09913f1
Feat - Add an isort formatting check in the tox.ini
Pierre-Sassoulas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| [settings] | ||
| multi_line_output=3 | ||
| line_length=88 | ||
| known_third_party=astroid, sphinx, isort, pytest, mccabe, six, | ||
| include_trailing_comma=True | ||
| skip_glob=*/functional/**,*/input/**,*/test/extension/**,*/test/regrtest_data/**,*/test/data/** | ||
| project=pylint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,17 @@ | ||
| repos: | ||
| - repo: https://github.com/ambv/black | ||
| rev: 18.6b4 | ||
| rev: 19.3b0 | ||
| hooks: | ||
| - id: black | ||
| args: [--safe, --quiet] | ||
| exclude: functional|input|test/extension|test/regrtest_data|test/data | ||
| python_version: python3.6 | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v1.2.3 | ||
| rev: v2.1.0 | ||
| hooks: | ||
| - id: trailing-whitespace | ||
| - id: end-of-file-fixer | ||
| - repo: https://github.com/pre-commit/mirrors-isort | ||
| rev: v4.3.15 | ||
| hooks: | ||
| - id: isort | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/usr/bin/env python | ||
| from pylint import epylint | ||
|
|
||
| epylint.Run() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/usr/bin/env python | ||
| from pylint import run_pylint | ||
|
|
||
| run_pylint() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/usr/bin/env python | ||
| from pylint import run_pyreverse | ||
|
|
||
| run_pyreverse() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/usr/bin/env python | ||
| from pylint import run_symilar | ||
|
|
||
| run_symilar() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.