summaryrefslogtreecommitdiff
path: root/tests/test_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
|
* improving test_pragma_parser (#8159)Andre Hora2023-02-021-0/+8
|
* Move no-self-use to optional extension (#6448)Marc Mueller2022-05-051-2/+2
| | | 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
* Add a warning ``use-implicit-booleaness-not-comparison`` for comparison with ↵Jaehoon Hwang2021-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Add typing with `PyAnnotate` to `./tests` (#4950)Daniël van Noord2021-09-041-12/+24
| | | | | | * Add mypy_extensions to requirement for ``NoReturn`` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Allow numbers in checker names. (#3667)Jeremy Fleischman2020-06-081-0/+8
| | | | This fixes https://github.com/PyCQA/pylint/issues/3666.
* Fix a regression where messages with dash are not fully parsedClaudiu Popa2020-05-141-0/+8
| | | | Close #3604
* [tests lint] Fix all W0612 unused-variable in pylint's own testsPierre Sassoulas2020-04-201-16/+6
|
* Add support for disabling line-too-long for multilines stringshippo912019-11-191-0/+94
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