summaryrefslogtreecommitdiff
path: root/pylint/extensions/code_style.py
Commit message (Collapse)AuthorAgeFilesLines
* Add optional `prefer-typing-namedtuple` message (#8681)HEADmainJacob Walls2023-05-161-0/+21
| | | Closes #8660
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* [pre-commit] Upgrade to black 23.1a1 with 2023's formatting (#7965)Pierre Sassoulas2022-12-271-1/+0
|
* Add default_enabled option to optional message dict (#7629)Marc Mueller2022-10-251-2/+3
|
* Move `consider-using-augmented-assign` to `CodeStyle` extension (#7628)Marc Mueller2022-10-161-0/+23
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Turn on ``mypy`` strict mode 🎉 (#7448)Daniël van Noord2022-09-091-3/+1
| | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode
* Migrate from utils.check_messages to utils.only_required_for_messages (#6432)Pierre Sassoulas2022-04-221-5/+5
|
* Remove ``IAstroidChecker`` from ``__implements__``Daniël van Noord2022-04-191-3/+0
|
* Deprecate ``get_global_option``Daniël van Noord2022-04-151-3/+2
|
* Replace .namespace with .config (#6316)Daniël van Noord2022-04-141-1/+1
|
* Use ``python-typing-update`` on ``pylint/extensions`` directory (#6308)Daniël van Noord2022-04-141-10/+12
|
* Remove the ``future_option_parsing`` keyword (#6253)Daniël van Noord2022-04-111-4/+0
|
* Use ``argparse`` config handler in all extensionsDaniël van Noord2022-04-021-2/+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-0/+4
| | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc
* Upgrade ``pydocstringformatter`` to ``0.5.0`` (#5910)Daniël van Noord2022-03-131-0/+1
|
* Restore the useful part of the python3 checker (#5843)Pierre Sassoulas2022-03-081-1/+1
| | | | | | | * Reinstate checks from the python3 checker that are still useful for py3 Closes #5025 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add typing and uniformize the checker registering in Pylinter (#5558)Pierre Sassoulas2021-12-271-4/+6
| | | | | 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>
* 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
* Spelling and grammar fixesVille Skyttä2021-09-171-1/+1
|
* Use overload to type get_global_option (#4978)Daniël van Noord2021-09-081-1/+1
| | | | | | * Use ``overload`` to type ``get_global_option`` * Use type alias and TypeVar Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Refactor various typing related issues (#4940)Daniël van Noord2021-09-031-3/+3
| | | | | | | | | | | | | | | * 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>
* Add `consider-using-assignment-expr` to `CodeStyleChecker` (#4876)Marc Mueller2021-08-301-1/+168
| | | | | | | | | | | * Add global py-version config * Add typing-extensions as requirement for Python < 3.10 * Add consider-using-assignment-expr to CodeStyleChecker * Default to max-line-length Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Refactor existing code - code_style extension (#4872)Marc Mueller2021-08-191-9/+4
|
* Use alias for astroid.nodes 04 (#4869)Marc Mueller2021-08-191-21/+20
| | | | | | | | | * Use alias for astroid nodes 04 * Resolve name conflicts * Apply suggestions from code review Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Improvements consider-using-tuple (#4838)Marc Mueller2021-08-131-17/+17
| | | | | | * Fix typing * Improve consider-using-tuple check * Limit to in-place defined lists * Emit even for starred expressions
* Keep bugfixMarc Mueller2021-08-121-1/+1
|
* Revert "Extended consider-using-tuple check to cover 'in' comparisons (#4768)"Marc Mueller2021-08-121-15/+10
| | | | This reverts commit ca3bc53fd8d628473fba25c7736d0abfac8e4a4a.
* Extended consider-using-tuple check to cover 'in' comparisons (#4768)Marc Mueller2021-07-291-10/+15
|
* Merge branch 'master' into misc-tasksPierre Sassoulas2021-06-121-3/+82
|\
| * Move consider-using-namedtuple-or-dataclass to CodeStyle extensionMarc Mueller2021-06-121-3/+82
| |
* | Add note to CodeStyleCheckerMarc Mueller2021-06-101-0/+9
|/
* Move to new extension CodeStyleCheckerMarc Mueller2021-06-101-0/+58