summaryrefslogtreecommitdiff
path: root/pylint/utils/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix benchmark test (#4138)Marc Mueller2021-02-231-1/+5
| | | | | * Don't check directories starting with '.' when using register_plugins * CI - Add benchmark job
* Migrate from % syntax or bad format() syntax to fstringPierre Sassoulas2021-02-211-1/+1
| | | | We can do that in python 3.6
* Move from % string formatting syntax to f-string or .format()Pierre Sassoulas2021-02-211-6/+4
|
* Update formatting following black and isort updatePierre Sassoulas2020-09-101-1/+1
|
* Support both isort 4 and isort 5Damien Baty2020-08-181-0/+35
| | | | | | | | | | | | | | | | | | | | | | 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.
* Chore: use https links (#3679)谭九鼎2020-06-111-1/+1
|
* Allow linting directories without `__init__.py`Claudiu Popa2020-05-021-1/+1
| | | | | This was a regressin in 2.5. Close #3528
* Allow package files to be properly discovered with multiple jobsClaudiu Popa2020-05-021-4/+5
| | | | Close #3524
* pyupgrade: automated removal of python2 constructsAnthony Sottile2020-03-241-2/+0
| | | | | | | | | | | | | using configuration: ```yaml - repo: https://github.com/asottile/pyupgrade rev: v2.1.0 hooks: - id: pyupgrade args: [--py3-plus, --keep-percent-format] exclude: ^tests/(extensions/data/|functional/|input/|regrtest_data/) ```
* Pass an additional search path to modutils.modpath_from_file and friendsClaudiu Popa2020-03-121-3/+14
|
* Move _get_python_path in utils to be accessible by that file as wellClaudiu Popa2020-03-121-0/+14
|
* Replace individual member imports with `os` in utils fileClaudiu Popa2020-03-121-18/+21
|
* Removed duplicates of code, changed default to common default valueMikhail Fesenko2019-10-031-4/+6
|
* Remove redundant compatibility code (#3097)Hugo van Kemenade2019-09-121-2/+0
| | | | We no longer support Python 2 so we can remove the compatibility code we had in place for that version.
* [pylint.utils] pylint.utils.category_id used only oncePierre Sassoulas2019-08-061-8/+1
|
* Refactor - Clearer function name ('rest' -> 'rst') in utilsPierre Sassoulas2019-06-201-5/+5
| | | | | I used the old name but there was probably a typo in it, as the format is called rst.
* Refactor - Move utility function to utilsPierre Sassoulas2019-06-201-0/+25
| | | | We want to use them in Checker too.
* Fix a bunch of linting errors from the codebaseClaudiu Popa2019-05-221-2/+2
|
* Refactor - Remove unused and untested code in utilsPierre Sassoulas2019-03-291-18/+0
| | | | | There might be code that is used only in test but it's harder to detect.
* Refactor - Move refactor.utils function to the utils packagePierre Sassoulas2019-03-291-0/+18
| | | | | | | This permit to have less cross dependency as the utils package does not depend on anything. The checker package still depends on reporter. Also moved classes from __init__ to their own file in reporter.
* Refactor - Merge normalize text in utils.pyPierre Sassoulas2019-03-291-1/+10
| | | | Now that there is no more circular import we can do that.
* Refactor - Avoid intra-packages circular dependencies for constantsPierre Sassoulas2019-03-291-2/+1
| | | | | | | | Some constants were package internal but were used by multiple packages. This created circular dependencies. By creating a file for constants we make sure this does not happen because we won't import everything important in this file and every thing else can depend on it.
* Style - Apply isort on all apllicable filesPierre Sassoulas2019-03-201-1/+2
|
* Refactor - Rename _ini_format_section directly to format_sectionPierre Sassoulas2019-03-091-4/+1
|
* Refactor - Create a pylint.message packagePierre Sassoulas2019-03-091-29/+2
| | | | | | | | There is a lot of Message related class in Utils this warrant the creation of a new package. See also review for burst utils.py into a package here: https://github.com/PyCQA/pylint/pull/2654#issuecomment-470748956
* Refactor - Move _rest_format_section in message_handler_mix_in.pyPierre Sassoulas2019-03-091-19/+0
| | | | Following review see : https://github.com/PyCQA/pylint/pull/2654#issuecomment-470748956
* Fix - C0412: Imports from package os are not groupedPierre Sassoulas2019-03-091-6/+5
|
* Refactor - Create a file for each class in utilsPierre Sassoulas2019-03-091-840/+12
|
* Refactor - Create a file for the MessageStore classPierre Sassoulas2019-03-091-243/+0
|
* Chore - Move content from __init__.py to utils.pyPierre Sassoulas2019-03-091-0/+1467