summaryrefslogtreecommitdiff
path: root/pylint/extensions/emptystring.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge the empty-string extensions to 'implicit_booleaness_checker'Pierre Sassoulas2023-05-021-78/+0
|
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* [compare-to-empty-string] More actionnable and understandable message (#7726)Pierre Sassoulas2022-11-091-20/+26
| | | | We have to use " as string delimiter because node as string have ' as string delimiter.
* [implicit_booleaness_checker] Add the confidence to related messages (#7721)Pierre Sassoulas2022-11-061-1/+2
| | | First step prior doing #6870 in order to make it more reviewable.
* Finish typing across the codebaseDaniël van Noord2022-09-091-8/+7
|
* Migrate from utils.check_messages to utils.only_required_for_messages (#6432)Pierre Sassoulas2022-04-221-1/+1
|
* Remove ``IAstroidChecker`` from ``__implements__``Daniël van Noord2022-04-191-3/+1
|
* Use ``--py39-plus`` and ``--full-reorder`` in ``python-typing-update`` (#6313)Daniël van Noord2022-04-141-1/+2
|
* Use ``python-typing-update`` on ``pylint/extensions`` directory (#6308)Daniël van Noord2022-04-141-1/+3
|
* Remove the concept of checker priority (#6034)Daniël van Noord2022-04-011-1/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-1/+1
| | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc
* Simplify hard to maintain copyright noticePierre Sassoulas2022-03-241-9/+1
| | | | | | git is the source of truth for the copyright, copyrite (the tool) was taking exponentially longer with each release, and it's polluting the code with sometime as much as 50 lines of names.
* Upgrade ``pydocstringformatter`` to ``0.5.0`` (#5910)Daniël van Noord2022-03-131-0/+1
|
* Add typing and uniformize the checker registering in Pylinter (#5558)Pierre Sassoulas2021-12-271-3/+5
| | | | | Remove verbose docstring in code, keep them in example and doc Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Fix typos accross the whole codebase (#5575)Pierre Sassoulas2021-12-211-1/+1
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Bump pylint to 2.12.0, update changelogv2.12.0Pierre Sassoulas2021-11-251-0/+1
| | | | Closes #5250
* Add a warning ``use-implicit-booleaness-not-comparison`` for comparison with ↵Jaehoon Hwang2021-10-171-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | collection literals (#5120) * Create a new checker; use-implicit-booleanness checker where it looks for boolean evaluatiion with collection literals such as `()`, `[]`, or `{}` * Fixed invalid usage of comparison within pylint package This closes #4774 * Ignore tuples when checking for `literal-comparison` Closes #3031 * Merge len_checker with empty_literal checker Moving empty literal checker with len_checker to avoid class without iterators without boolean expressions (false positive on pandas) Reference: https://github.com/PyCQA/pylint/pull/3821/files * Update `len_checker` and its class `LenChecker` to `ComparisonChecker` to reflect better usage after merging between `len_checker` and `empty_literal_checker` and its tests. * Fixed `consider_using_in` and `consider_iterating_dictionary` tests that were failing due to new empty literal checkers. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump pylint to 2.11.0, update changelogv2.11.0Pierre Sassoulas2021-09-161-0/+1
|
* Refactor various typing related issues (#4940)Daniël van Noord2021-09-031-2/+4
| | | | | | | | | | | | | | | * Add type annotations to ``visit`` & ``leave`` calls This adds typing to most calls that visit nodes. All other changes are due to mypy errors resulting from introduction of typing. * Fix outstanding mypy issues This removes some of the `type: ignore` comments in favour of solving the mypy issues these comments were surpressing. * Fix remaining references to node_classes Except for two references to node_classes in the changelog this should be the last of them Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Use alias for astroid.nodes 04 (#4869)Marc Mueller2021-08-191-2/+2
| | | | | | | | | * Use alias for astroid nodes 04 * Resolve name conflicts * Apply suggestions from code review Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* 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
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Update copyright notice with copyritePierre Sassoulas2021-02-281-1/+1
|
* Apply copyrite --contribution-thresholdPierre Sassoulas2021-02-211-0/+1
|
* Sets up copyrighthippo912020-08-201-1/+1
|
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+3
|
* 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/) ```
* Style - Apply isort on all apllicable filesPierre Sassoulas2019-03-201-2/+1
|
* Reformat the code with blackClaudiu Popa2018-09-171-10/+13
|
* Update copyright noticesClaudiu Popa2018-07-151-0/+1
|
* Regenerate copyright noticesClaudiu Popa2017-12-151-1/+1
|
* Add new extension for comparison against empty string constants (#1183)Alexander Todorov2016-12-291-0/+71