diff options
author | Damien Baty <damien.baty@polyconseil.fr> | 2020-07-05 23:06:04 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-08-18 09:12:33 +0200 |
commit | 9bc9bdf533213ba967b5199aa9f3246f08f8999c (patch) | |
tree | ed2ae7b060b5af1f051af393c7a6f1e9f4c500e7 /man | |
parent | 707fc4603b9d505bda68cf6adf9805882b99d73c (diff) | |
download | pylint-git-9bc9bdf533213ba967b5199aa9f3246f08f8999c.tar.gz |
Support both isort 4 and isort 5
The API of isort 5 (released on 2020-07-04) is completely different.
We must still support isort 4 because isort 5 dropped the
compatibility with Python 3.5, which pylint still supports.
Note about the `known-standard-library` option: it has been included
in pylint for years. Until now, it was mapped with the option of the
same name in isort. However, isort 5 has changed the meaning of this
option (see https://timothycrosley.github.io/isort/docs/upgrade_guides/5.0.0/#known_standard_library).
Most users of pylint want the meaning of the new
`extra-standard-library` option. To avoid a breaking change in pylint,
the `known-standard-library` pylint option is now mapped to
`known-standard-library` in isort 4, and `extra-standard-library` in
isort 5. Users that really want the _new_ meaning of
`known-standard-library` in isort 4 must disable the
`wrong-import-order` check in pylint and run isort manually, outside
of pylint.
Fix #3722.
Diffstat (limited to 'man')
-rw-r--r-- | man/pylint.1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man/pylint.1 b/man/pylint.1 index 7e0e4e94c..b08a0be78 100644 --- a/man/pylint.1 +++ b/man/pylint.1 @@ -209,7 +209,7 @@ Create a graph of external dependencies in the given file (report RP0402 must no .IP "--int-import-graph=<file.dot>" Create a graph of internal dependencies in the given file (report RP0402 must not be disabled). [default: none] .IP "--known-standard-library=<modules>" -Force import order to recognize a module as part of the standard compatibility libraries. [default: none] +Force import order to recognize a module as part of the standard compatibility libraries. .IP "--known-third-party=<modules>" Force import order to recognize a module as part of a third party library. [default: enchant] .IP "--allow-any-import-level=<modules>" |