summaryrefslogtreecommitdiff
path: root/pylint/utils/pragma_parser.py
Commit message (Collapse)AuthorAgeFilesLines
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* [refactor] Use typed NamedTuple for Confidence + PragmaRepresenter (#7718)Pierre Sassoulas2022-11-051-2/+4
| | | | | The init needs to analyse a string with the old way of doing things, which is not the best in term of performance. We also have the benefit of being able to add typing with the new way of doing it.
* Run development version of ``pydocstringformatter`` (#6469)Daniël van Noord2022-04-281-1/+1
|
* Add some manual typing changes (#6325)Daniël van Noord2022-04-141-1/+1
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Use ``python-typing-update`` on ``pylint/utils`` and ``message`` dirsDaniël van Noord2022-04-141-4/+6
|
* 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-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.
* Optimize handling of long lines for checkers like 'missing-final-newline' ↵Sergey B Kirpichev2022-03-161-11/+12
| | | | | | | | | | | | | | (#5925) * Fix parsing of long lines when ``missing-final-newline`` is enabled * Adapt fa31b6b6 to be backward-compatible Fixes #5724 Also address comments from the PR PyCQA/pylint#5786 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-3/+3
|
* [pre-commit.ci] pre-commit autoupdate (#5758)pre-commit-ci[bot]2022-02-011-1/+1
| | | | | | | | | | | | | * [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>
* Format docstrings with ``pydocstringformatter``Daniël van Noord2022-01-021-11/+4
|
* 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>
* 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
* Remove unwanted non-breaking whitespaces in comment (#5256)Pierre Sassoulas2021-11-041-11/+11
|
* Add small bits of typing annotation (#4954)Daniël van Noord2021-09-251-5/+7
|
* Spelling and grammar fixesVille Skyttä2021-09-171-1/+1
|
* Add ``disable-next`` option (#4797)Daniël van Noord2021-08-051-1/+3
| | | | | | | | | | * Add ``disable-next`` option Adding `# pylint: disable-next=msgid` to your file will disable the message for the next line. This closes #1682 * Add documentation, rorganize the FAQ for disable/enable and add ref to the full doc Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add new checkers ``use-list-literal`` and ``use-dict-literal`` (#4769)Daniël van Noord2021-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Add ``use-list-literal`` and ``use-dict-literal`` This adds two checks for when empty lists and dicts are created using a function call instead of their literals. This closes #4365 * Conform code to use-list-literal, use-dict-literal With addition of the use-list-literal and use-dict-literal checkers some code had to be updated. As there is a real performance difference, the literal is preferred when it is as clear as using the function call. * Conform test to use-list-literal, use-dict-literal With addition of the use-list-literal and use-dict-literal checkers some code had to be updated. As there is a real performance difference, the literal is preferred when it is as clear as using the function call. For some tests ignoring the checker seemed better for clarity of the test. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* 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
|
* Refactor from old style typing to new style typingPierre Sassoulas2021-03-311-1/+1
|
* Move from % string formatting syntax to f-string or .format()Pierre Sassoulas2021-02-211-2/+2
|
* Allow numbers in checker names. (#3667)Jeremy Fleischman2020-06-081-1/+1
| | | | This fixes https://github.com/PyCQA/pylint/issues/3666.
* Fix a regression where messages with dash are not fully parsedClaudiu Popa2020-05-141-1/+1
| | | | Close #3604
* Fix trailing whitespaces and trailing newlinesPierre Sassoulas2020-05-031-1/+1
|
* pyupgrade: automated removal of python2 constructsAnthony Sottile2020-03-241-3/+1
| | | | | | | | | | | | | 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 support for disabling line-too-long for multilines stringshippo912019-11-191-0/+134
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