summaryrefslogtreecommitdiff
path: root/pylint/checkers/refactoring/recommendation_checker.py
Commit message (Collapse)AuthorAgeFilesLines
* Modified all occurences of "a f-string" to "an f-string"Elazrod562023-04-201-2/+2
|
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* Fix false positive for `use-maxsplit-arg` with custom split (#8114)yushao22023-01-301-0/+5
| | | | | | Closes #4857 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [pre-commit] Upgrade to black 23.1a1 with 2023's formatting (#7965)Pierre Sassoulas2022-12-271-1/+0
|
* Fix `use-sequence-for-iteration` when unpacking a set with `*` (#7975)Dani Alcala2022-12-261-4/+11
|
* Do not report `consider_iterating_dictionary` if bitwise operations are used ↵Dani Alcala2022-11-101-1/+8
| | | | | | | (#7743) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move `consider-using-augmented-assign` to `CodeStyle` extension (#7628)Marc Mueller2022-10-161-20/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``consider-using-augmented-assign`` checker (#7514)Daniël van Noord2022-09-221-0/+20
| | | | Co-authored-by: clavedeluna <danalitovsky+git@gmail.com> Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
* Finish typing across the codebaseDaniël van Noord2022-09-091-1/+1
|
* Fixed misinterpreted modulo sign for ``consider-using-f-string`` (#6914)Paul Lichtenberger2022-06-111-0/+6
| | | | | | * Fixed a false positive in consider-using-f-string if the left side of a % is not a string. * consider-using-f-string: if left side of a \% does not have the attr value it can't be a str
* Some initial line wrapping of docstrings (#6672)Daniël van Noord2022-05-231-1/+3
|
* Run development version of ``pydocstringformatter`` (#6469)Daniël van Noord2022-04-281-1/+1
|
* Migrate from utils.check_messages to utils.only_required_for_messages (#6432)Pierre Sassoulas2022-04-221-4/+6
|
* Remove ``IAstroidChecker`` from ``__implements__``Daniël van Noord2022-04-191-2/+1
|
* Deprecate ``get_global_option``Daniël van Noord2022-04-151-2/+1
|
* Use ``python-typing-update`` on ``pylint/checkers/...`` directoriesDaniël van Noord2022-04-141-2/+2
|
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-1/+2
| | | | | 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-0/+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.
* Fix crash in `use-maxsplit-arg` checker where `sep` given by keyword (#5772)Jacob Walls2022-02-061-2/+2
|
* Format docstrings with ``pydocstringformatter``Daniël van Noord2022-01-021-1/+2
|
* 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>
* Deprecate ``is_inside_lambda`` from utils (#5447)Daniël van Noord2021-12-031-1/+1
| | | | | | | * Deprecate ``is_inside_lambda`` from utils * Allow tuple and single type for ``get_node_first_ancestor_of_type`` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Update pylint/checkers/refactoring/recommendation_checker.pyyushao22021-11-291-1/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Apply suggestions from code reviewyushao22021-11-291-2/+2
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* added util functions and changed code according to pr commentsYu Shao2021-11-291-16/+15
|
* fix(consider-interating-dictionary): fix false negativesYu Shao2021-11-291-13/+15
|
* Activate and fix existing use-set-for-membership checks (#5379)Pierre Sassoulas2021-11-251-1/+1
| | | | * Activate and fix existing use-set-for-membership checks
* Fix a crash if ``str.format`` is referenced without being called (#5109)Tim Martin2021-10-061-2/+2
| | | | | Closes #5058 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Small py-version improvements (#5069)Marc Mueller2021-09-251-1/+1
| | | | | | | | | * Add py-version requirement to checker docs * Improve default value * Improve option parser error message * Fix py-version help text
* Make ``consider-using-f-string`` skip `format()` with backslash (#5055)Daniël van Noord2021-09-211-0/+7
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Require Python 3.6 for consider f-string check (#5024)Marc Mueller2021-09-171-5/+13
| | | | | | | * Require Python 3.6 for consider f-string check Co-authored-by: Ville Skyttä <ville.skytta@iki.fi> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove most `typing.cast()` calls (#4995)Daniël van Noord2021-09-151-9/+1
|
* Make consider-iterating-dictionary consider membership check (#4997)Daniël van Noord2021-09-141-11/+18
|
* Moved ``consider-using-f-string`` to `RecommendationChecker` (#4957)Daniël van Noord2021-09-031-0/+78
| | | | | Based on discussion in #4787 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Use alias for astroid.nodes 03 (#4866)Marc Mueller2021-08-181-47/+47
| | | | | | | | | * Use alias for astroid nodes 03 * Resolve name conflicts * Apply suggestions from code review Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add new check - use-sequence-for-iterationMarc Mueller2021-08-131-3/+25
|
* Refactor visit_comprehensionMarc Mueller2021-08-131-0/+6
|
* Update code from review feedbackYu Shao, Pang2021-07-071-0/+3
|
* [use-maxsplit-arg] Handle case of mutating subscript in loopYu Shao, Pang2021-07-071-24/+44
|
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Update link to astroid bump_changelog
* Apply suggestions from code reviewyushao22021-07-011-1/+2
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* fix false positive of `consider-using-dict-items`Yu Shao, Pang2021-07-011-1/+1
|
* Remove deprecated astroid.Index and astroid.ExtSlice nodes (#4568)Marc Mueller2021-06-161-6/+0
|
* Fixed false negative of consider-using-enumerate on attributes (#4508)yushao22021-05-261-9/+20
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Implemented new check use-maxsplit-arg (#4469)yushao22021-05-221-2/+51
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Removed redundant logic from consider-using-dict-items (#4486)yushao22021-05-221-5/+2
|
* Implemented new check consider-using-dict-items (#4445)yushao22021-05-111-2/+93
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-211-2/+0
|
* Fix a crash in `consider-using-enumerate` when encountering `range()` ↵Claudiu Popa2020-12-291-0/+2
| | | | | | without arguments Close #3735