summaryrefslogtreecommitdiff
path: root/pylint
Commit message (Collapse)AuthorAgeFilesLines
* Add extension-pkg-allow-list optionPeter Kolbus2021-03-092-3/+22
| | | | | Add an option extension-pkg-allow-list to the main checker. This is an alternate name for extension-pkg-whitelist.
* Remove 'blacklist' term for good/bad identifiersPeter Kolbus2021-03-092-9/+9
| | | | | | | Replace blacklist/whitelist terminology in the context of identifier names. The message identifier 'blacklisted-name' will be addressed in a future patch; a transition path is needed because this message may be referenced in pylintrc files or disable comments.
* Reduce 'blacklist' term for ignored filesPeter Kolbus2021-03-094-20/+20
| | | | | | | Replace usage of the term 'blacklist' in the context of ignored files and directories (--ignore and --ignore-patterns), except in cases where backward compatibility is needed. In documentation and help, supplement 'ignore' with 'skip'; in code use the term 'ignore list'.
* Fix astroid.Inference error for undefined-variables with len()Marc Mueller2021-03-081-1/+5
|
* Fix functional test fail so it can be copy pastedPierre Sassoulas2021-03-071-1/+1
|
* Typing changes + disable unused pylint plugin for pre-commit (#4205)Marc Mueller2021-03-071-5/+6
|
* Print helpful error when toml decode fails (#4176)Quentin Young2021-03-071-1/+7
| | | | | | | | * Print helpful error when toml decode fails If loading a TOML config file fails, print the issue with the TOML file rather than dumping stack. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* pyreverse: Add output directory command-line optionMark Byrne2021-03-071-3/+1
| | | | | | - Use the formatting of `black` pre-commit hook Issue: #4159
* pyreverse: Add output directory command-line optionMark Byrne2021-03-072-0/+17
| | | | Issue: #4159
* Add typing that were lacking following refactorPierre Sassoulas2021-03-071-10/+6
| | | | See : 6721cd1cf2da0294124b75d382a042e23ec27d47
* Introduced deprecated attributesMatus Valo2021-03-061-4/+71
|
* Add is_class_var utils functionMarc Mueller2021-03-062-8/+12
|
* Add --class-const-naming-styleMarc Mueller2021-03-061-2/+17
|
* Fix false-positive no-member for typed annotations without default valueMarc Mueller2021-03-062-6/+25
|
* Exempt TypedDict from too-few-public-methods checkMarc Mueller2021-03-061-2/+3
|
* Refactor modify sys_path for execution as python moduleMarc Mueller2021-03-052-10/+24
|
* Add allow-redefined-builtins option to variable checkerAlexander Kapshuna2021-03-051-2/+16
| | | | | | | | Some builtins have little-to-no use in application code while being convenient as variables names (e.g. id, dir). New option allows to configure allowed to override names for redefined-builtin checker. Closes #3263
* Fix Enum invalid name with snake_case presetMarc Mueller2021-03-021-1/+2
|
* Upgrade the changelog following release of 2.7.2Pierre Sassoulas2021-02-281-1/+1
|
* Update copyright notice with copyritePierre Sassoulas2021-02-2822-27/+18
|
* Remove TypedDict hotfixMarc Mueller2021-02-281-5/+0
|
* Update astroid versionMarc Mueller2021-02-281-1/+1
|
* Use correct SPDX license tagMarc Mueller2021-02-281-1/+1
|
* Update requirementsMarc Mueller2021-02-281-1/+1
| | | | | | | | | * Pin test and doc requirements to current versions * Rename requirements_test_pypy.txt to requirements_test_min.txt * Move some dependencies from min to test * Update coverage and sphinx versions * Update ci * Use pytest-cov
* Properly strip dangerous sys.path entries (not just the first one) (#4153)Louis Sautier2021-02-281-2/+1
| | | | | | | 51c646bf70a6e0a86492bfd2ddd1885671d64d67 only stripped the first bad sys.path entry, causing problems when PYTHONPATH starts or ends with a colon. Closes: https://github.com/PyCQA/pylint/issues/3636
* Fix False positive on Enum.__members__.items() (#4135)Ikraduya Edian2021-02-271-0/+12
| | | | | | | * Fix false positive on Enum.__members__.{values, keys} * Fix False positive on Enum.__members__.items() Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix benchmark test (#4138)Marc Mueller2021-02-231-1/+5
| | | | | * Don't check directories starting with '.' when using register_plugins * CI - Add benchmark job
* Expose UnittestLinter in testutils after 2.7Lefteris Karapetsas2021-02-221-0/+2
|
* Add 2.8.0 in the ChangelogPierre Sassoulas2021-02-211-2/+2
|
* Better documentation for the change in version during releasePierre Sassoulas2021-02-211-1/+1
|
* Apply copyrite --contribution-thresholdPierre Sassoulas2021-02-2157-69/+136
|
* Upgrade version to 2.7.0 and fix astroid to 2.5.0Pierre Sassoulas2021-02-211-2/+2
|
* Migrate from % syntax or bad format() syntax to fstringPierre Sassoulas2021-02-2112-100/+48
| | | | We can do that in python 3.6
* Move from % string formatting syntax to f-string or .format()Pierre Sassoulas2021-02-2133-105/+105
|
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-2140-62/+0
|
* Move message definition to the DeprecatedMixin classMatus Valo2021-02-212-1/+10
|
* Introduced DeprecatedMixinMatus Valo2021-02-213-34/+63
|
* Add new `consider-using-generator` and 'use-a-generator' checkersIkraduya Edian2021-02-201-0/+61
| | | | | | | | See issue #3165 (#3309) See https://github.com/PyCQA/pylint/pull/3309#discussion_r576683109 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniel Hahler <github@thequod.de>
* Fix false positive when map() receives iterableTiago Honorato2021-02-201-0/+1
| | | | | | | Since map() supports iterables, it should not issue builtin-not-iterating for iterable arguments. Signed-off-by: Tiago Honorato <tiagohonorato1@gmail.com>
* Fix false positive when zip() receives iterable (#4105)tiagohonorato2021-02-191-0/+1
| | | | | | | | Since zip() supports iterables, it should not be an issue builtin-not-iterating for iterable arguments. Signed-off-by: Tiago Honorato <tiagohonorato1@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* add nan-comparison checker for NaN comparisonsOr Bahari2021-02-181-2/+57
| | | | **After fix whatsnew to 2.7
* Fix issue with nested PEP 604 syntaxMarc Mueller2021-02-161-7/+22
|
* Fix issue with nested PEP 585 syntaxMarc Mueller2021-02-161-4/+10
|
* Move from format() to f-string where it makes sensePierre Sassoulas2021-02-1617-112/+58
| | | | As we do not maintain python 3.5 it permit to simplify some code
* Remove Python 3.4 compatibility code from MessageDavid Gilman2021-02-161-3/+1
|
* Graingert add generated members match against the qualified name (#4092)Pierre Sassoulas2021-02-151-11/+21
| | | | | | | | * Fix #2498: add generated-members match against the qualified name Add test for fully qualified generated-members Co-authored-by: Gauthier Sebaux <gauthier.sebaux@wavestone.com> Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* Fix E265 block comment should start with '# 'Pierre Sassoulas2021-02-151-1/+2
|
* Fix W504 line break after binary operatorPierre Sassoulas2021-02-151-4/+2
|
* Fix E266 too many leading '#' for block commentPierre Sassoulas2021-02-151-9/+2
|
* Fix E731 do not assign a lambda expression, use a defPierre Sassoulas2021-02-151-2/+5
|