Commit Graph

17 Commits

Author SHA1 Message Date
Hugo van Kemenade
b72c0dd9a3 Remove redundant compatibility code (#3097)
We no longer support Python 2 so we can remove
the compatibility code we had in place for that version.
2019-09-12 06:10:27 -05:00
Pierre Sassoulas
c1fe6e175f [pylint.utils] pylint.utils.category_id used only once 2019-08-06 16:39:31 +02:00
Pierre Sassoulas
30ba9f4756 Refactor - Clearer function name ('rest' -> 'rst') in utils
I used the old name but there was probably a typo in it, as the format is
called rst.
2019-06-20 14:09:59 +02:00
Pierre Sassoulas
b473ef86bb Refactor - Move utility function to utils
We want to use them in Checker too.
2019-06-20 14:09:59 +02:00
Claudiu Popa
6b0003da63 Fix a bunch of linting errors from the codebase 2019-05-22 09:26:18 +02:00
Pierre Sassoulas
293a7f5e6a Refactor - Remove unused and untested code in utils
There might be code that is used only in test but it's harder
to detect.
2019-03-29 09:37:05 +01:00
Pierre Sassoulas
273492326c Refactor - Move refactor.utils function to the utils package
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.
2019-03-29 09:37:05 +01:00
Pierre Sassoulas
d8116eac7c Refactor - Merge normalize text in utils.py
Now that there is no more circular import we can do that.
2019-03-29 09:37:05 +01:00
Pierre Sassoulas
1dbbb35d93 Refactor - Avoid intra-packages circular dependencies for constants
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.
2019-03-29 09:37:05 +01:00
Pierre Sassoulas
5ab140ac3b Style - Apply isort on all apllicable files 2019-03-20 09:07:35 +01:00
Pierre Sassoulas
5073ebd9fb Refactor - Rename _ini_format_section directly to format_section 2019-03-09 11:09:29 +01:00
Pierre Sassoulas
2b50749867 Refactor - Create a pylint.message package
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
2019-03-09 11:09:29 +01:00
Pierre Sassoulas
b1780d1a4f Refactor - Move _rest_format_section in message_handler_mix_in.py
Following review see : https://github.com/PyCQA/pylint/pull/2654#issuecomment-470748956
2019-03-09 11:09:29 +01:00
Pierre Sassoulas
e9a12d27cf Fix - C0412: Imports from package os are not grouped 2019-03-09 11:09:29 +01:00
Pierre Sassoulas
16e98598c6 Refactor - Create a file for each class in utils 2019-03-09 11:09:29 +01:00
Pierre Sassoulas
20976c36f1 Refactor - Create a file for the MessageStore class 2019-03-09 11:09:29 +01:00
Pierre Sassoulas
5f34108a10 Chore - Move content from __init__.py to utils.py 2019-03-09 11:09:29 +01:00