summaryrefslogtreecommitdiff
path: root/pylint/checkers/misc.py
Commit message (Collapse)AuthorAgeFilesLines
* [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/+1
|
* Fix disabling of ``fixme`` (#7144)Daniël van Noord2022-07-071-36/+6
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add typing to various checkers (#6695)Daniël van Noord2022-05-251-1/+1
|
* Remove some words from custom dictionary and update spellingDaniël van Noord2022-04-261-1/+1
|
* Subclass ``BaseRawFileChecker`` and ``BaseTokenChecker``Daniël van Noord2022-04-191-7/+3
|
* Add typing to BaseChecker.process_token (#6273)Pierre Sassoulas2022-04-191-1/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix a failure to respect inline disables for `fixme` (#6362)Jacob Walls2022-04-181-2/+2
| | | | This occurred when invoking pylint with `enable=fixme`.
* Replace .namespace with .config (#6316)Daniël van Noord2022-04-141-7/+5
|
* Use ``python-typing-update`` on ``pylint/checkers`` directoryDaniël van Noord2022-04-141-4/+6
|
* Remove the ``future_option_parsing`` keyword (#6253)Daniël van Noord2022-04-111-3/+0
|
* Use ``argparse`` config handler in ``misc.py`` (#6122)Daniël van Noord2022-04-021-5/+11
|
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-2/+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-23/+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-1/+3
|
* Fix matching note tags with a non-word char last (#5859)dbrookman2022-03-041-2/+2
| | | | | | | | | | | | | Using "\b" at the end of these patterns will only match note tags that end in an alphanumeric character, immediately followed by a non-alphanumeric character, or the end of the string. This is due to "\b" being defined as a boundary between a word character ("\w") and a non-word character ("\W"), or the end of the string. This leads to deviations like "???" being ignored when specified. Swapping "\b" for a positive lookahead that targets a whitespace, a colon, or the end of a string accounts for this. Closes #5840.
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-4/+4
|
* [pre-commit.ci] pre-commit autoupdate (#5758)pre-commit-ci[bot]2022-02-011-2/+2
| | | | | | | | | | | | | * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 21.12b0 → 22.1.0](https://github.com/psf/black/compare/21.12b0...22.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* 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>
* Merge ``MessagesHandlerMixIn`` into ``PyLinter`` (#5136)Daniël van Noord2021-10-171-4/+10
| | | * Merge ``MessagesHandlerMixIn`` into ``PyLinter``
* Bump pylint to 2.11.0, update changelogv2.11.0Pierre Sassoulas2021-09-161-0/+1
|
* Add typing to most reference of ``stream``Daniël van Noord2021-09-131-2/+9
|
* Type ``process_module`` and update argument namesDaniël van Noord2021-09-131-5/+7
|
* Add ``Consider-using-f-string`` checker (#4796)Daniël van Noord2021-08-301-1/+1
| | | | | | | | | | | | | | | | * 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-4/+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
|
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Replace mapMarc Mueller2021-04-031-1/+1
|
* better docstring in message handler mixinPierre Sassoulas2021-03-311-2/+0
|
* Prepare 2.7.3 release (#4261)pylint-2.7.32.7Pierre Sassoulas2021-03-291-0/+1
|
* Fix column index of FIXME warnings (#4246)Konstantina Saketou2021-03-251-2/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false negative 'use-symbolic-message-instead' and optimize itPierre Sassoulas2021-03-171-5/+4
| | | | | | use-symbolic-message-instead was not working for message with multiple new names and the function to get the symbol was suboptimal. Also made the solution copy pastable.
* Apply copyrite --contribution-thresholdPierre Sassoulas2021-02-211-2/+3
|
* Move from % string formatting syntax to f-string or .format()Pierre Sassoulas2021-02-211-1/+1
|
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-211-1/+0
|
* Move from format() to f-string where it makes sensePierre Sassoulas2021-02-161-14/+4
| | | | As we do not maintain python 3.5 it permit to simplify some code
* Converting the strings in the values list to upper case serves no purpose as ↵wtracy2020-10-021-1/+0
| | | | the list is simply tested with set() and then discarded.
* Merge branch 'master' into bug_pylint_3468hippo912020-09-031-1/+1
|\
| * Sets up copyrighthippo912020-08-201-1/+1
| |
* | Corrects some inconsistent-return-statements occurenceshippo912020-08-201-0/+1
|/
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-2/+8
|
* Refactor - Move the content of lint.py in its own packagePierre Sassoulas2020-04-261-1/+1
| | | | Also move unittest_lint in test/lint.
* 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/) ```
* Add notes-rgx option for fixme checker (#3394)Benny2020-02-131-3/+16
| | | | | | | This commit adds a new `notes-rgx` which is used by the "fixme" check for more granular control over the what fixme messages to emit. Co-authored-by: Claudiu Popa <pcmanticore@gmail.com>
* Add support for disabling line-too-long for multilines stringshippo912019-11-191-4/+14
| | | | | | | | | This commit adds support for disabling `line-too-long` messages for multilines strings such as docstrings. When a pylint disable pragma is present at the end of the docstring, it is taken in account for the entire docstring. Close #2957
* Removed Python 2 specific checksClaudiu Popa2019-09-171-12/+3
| | | | | Certain checks such as relative-import, invalid-encoded-data and missing-super-argument were removed as they no longer make sense on Python 3.
* Fix a bunch of linting errors from the codebaseClaudiu Popa2019-05-221-3/+1
|
* Pass the line number for bad-inline-option instead of passing the actual lineClaudiu Popa2019-05-191-1/+1
| | | | Close #2904