summaryrefslogtreecommitdiff
path: root/pylint/epylint.py
Commit message (Collapse)AuthorAgeFilesLines
* Bump pylint to 2.11.0, update changelogv2.11.0Pierre Sassoulas2021-09-161-0/+1
|
* Add ``Consider-using-f-string`` checker (#4796)Daniël van Noord2021-08-301-2/+2
| | | | | | | | | | | | | | | | * Add ``consider-using-f-string`` checker This adds a checker for normal strings which are formatted with ``.format()`` or '%'. The message is a convention to nudge users towards using f-strings. This closes #3592 * Update pylint code to use f-strings After adding `consider-using-f-strings` the codebase showed numerous cases of formatting which could be f-strings. This commit changes most of these to become f-strings, or adds ignores. * Apply suggestions from code review Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump pylint to 2.10.0, update changelogv2.10.0Pierre Sassoulas2021-08-201-0/+1
|
* Change some if/assign blocks to if-expressionsNick Drozd2021-08-201-8/+2
|
* Bump pylint to 2.9.3, update changelogv2.9.3Pierre Sassoulas2021-07-011-0/+1
|
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Update link to astroid bump_changelog
* Prepare for 2.8.0 releasepylint-2.8.0Pierre Sassoulas2021-04-241-0/+1
|
* Enhancement #3413 ``consider-using-with`` (#4372)DudeNr332021-04-231-20/+21
| | | | | | | | * Implement consider-using-with check * Fix or disable consider-using-with in codebase * Fix ticket number in ChangeLog * Move functional test for ``open()`` into separate testfile and exclude this test from running with PyPy Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Make import from os.path more explicitPierre Sassoulas2021-03-311-8/+9
|
* Apply copyrite --contribution-thresholdPierre Sassoulas2021-02-211-2/+2
|
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-211-1/+0
|
* Sets up copyrighthippo912020-08-201-1/+2
|
* Switch to isort 5 for pylint's own codeDamien Baty2020-08-181-1/+1
|
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+5
|
* pyupgrade: automated removal of python2 constructsAnthony Sottile2020-03-241-1/+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/) ```
* 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.
* ``epylint.py_run`` defaults to ``python`` in case the current executable is ↵Claudiu Popa2019-03-281-1/+4
| | | | | | not a Python one. Close #2837
* Style - Apply isort on all apllicable filesPierre Sassoulas2019-03-201-2/+2
|
* Reformat the code with blackClaudiu Popa2018-09-171-15/+31
|
* Update copyright noticesClaudiu Popa2018-07-151-1/+5
|
* Remove six package usages. (#2151)Sushobhit2018-05-271-3/+2
|
* Fixes erroneous default arguments to epylint (#2001)Ryan McGuire2018-04-071-3/+2
| | | | | Fixes a bug where epylint ignores settings in pylintrc due to hard coded default arguments. Now with this fix, the output of epylint is identical to pylint.
* Fix shlex parsing error on Windows in epylint (#1941)thernstig2018-03-161-1/+1
| | | | | | | | | | * Fix shlex parsing error on Windows in epylint Closes #1940 * Change py_run's shlex posix sys.platform sys.platform mistakenly included darwin as not posix compliant
* epylint: Remove incorrect docstringRadostin Stoyanov2018-03-031-6/+0
| | | | | This example has been introduced in #5821. However, it does not work any more. Closes #1870
* Regenerate copyright noticesClaudiu Popa2017-12-151-0/+8
|
* Adding a check for ``inconsistent-return-statements`` inside function or ↵hippo912017-09-261-0/+1
| | | | | methods. (#1641) Close #1267
* epylint: corrects msg-template object (#1311)Daniela Plascencia2017-02-081-2/+2
| | | | | | | The way this object is defined, won't let the user modify the message template when pylint is called from a python script. Rearranging the order of variables on its definition prevents this behavior. Signed-off-by: Daniela Plascencia <daniela.plascencia@linux.intel.com>
* Even more granular copyrights (thanks to copyrite)Claudiu Popa2016-07-231-3/+6
|
* Keep a consistent copyright notice across the board.Claudiu Popa2016-07-191-0/+2
| | | | | This was changed automatically in #894, but apparently we need to have the copyright notice somewhere.
* Use the current interpreter's epylint.lintClaudiu Popa2016-07-191-6/+7
| | | | | | | | | | | | | | epylint.py_run was calling *epylint* script in order to do the computation. But this was prone to failures, in the case where we have multiple installations of Pylint, for different Python versions, which actually led to crashes when a Python 2's py_run call was calling epylint's belonging to Python 3. Instead of calling epylint script directly, we are calling Python with our known epylint code. In order to do this, we also had to switch the shell argument to False. Closes #441
* Run pylint from epylint using -c.Claudiu Popa2016-06-231-3/+2
| | | | | | | | | | | | This gets rid of a potential issue which can occur if epylint was calling pylint with lint.py instead. When this was happening, the first entry of sys.path would have been the directory of pylint which contains lint.py. At the same time, if someone analyzes, with epylint, a file that contains an import of a module, and that module has the same name as one of the modules that are coming along with pylint's lint.py, then instead of importing the module from site-packages, the pylint's module would have been imported instead. Close #920
* Add the new shorter license header, including to missing files. Close #894.Claudiu Popa2016-06-011-15/+4
|
* epylint.py_run does not crash on big files, using .communicate() instead of ↵Claudiu Popa2016-03-281-2/+5
| | | | | | .wait() Close #599
* Fix new import related errors in pylint's codebase.Claudiu Popa2015-11-251-1/+1
|
* Fix multiple-imports error in epylint.pyClaudiu Popa2015-10-021-1/+2
|
* Fix some pylint warnings over pylint's codebase.Claudiu Popa2015-05-161-4/+4
|
* start removing checks from disabled list, fix code to make sure these pass: ↵Mihai Balint2015-02-281-1/+2
| | | | C0102,C0112,C0121,C0202,C0203,C0204,C0301
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-141-0/+176