summaryrefslogtreecommitdiff
path: root/tests/functional/n
Commit message (Collapse)AuthorAgeFilesLines
* Fix a false negative for ``too-many-arguments`` and positional-only and ↵Mark Byrne2023-05-151-1/+1
| | | | | | | | keyword-only arguments (#8674) Closes #8667
* Modified comment on line 147 to improve spellingElazrod562023-04-201-1/+1
|
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-2911-23/+23
|
* Prevent emitting ``invalid-name`` on 'global' redefinition (#8337)Mark Byrne2023-02-272-2/+1
| | | | | Closes #8307
* [doc] Add an example for 'non-ascii-file-name' (#8340)Pierre Sassoulas2023-02-251-1/+1
| | | | | And move links to related.rst Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
* Fix `nested-min-max` output msg for sequences (#8234)Dani Alcala2023-02-082-0/+29
|
* Add tests to improve coverage (#8096)Dani Alcala2023-01-261-2/+8
|\
| * add test for Uninferableclavedeluna2023-01-241-2/+8
| |
* | Update disallowed-name to flag module-level variables (#7808)Dani Alcala2023-01-256-7/+7
|/ | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [pypy3.8] Disable multiple-statements false positive on affected functional ↵Pierre Sassoulas2022-12-154-12/+16
| | | | tests
* Fix ``no-else-return false Negative for try/except/else pattern (#7888)Dani Alcala2022-12-125-28/+119
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add extension checker for nested min/max (#7550)Osher De Paz2022-11-212-0/+29
| | | | | | | | | | | | This adds a new checker (not active by default) which identifies usages similar to ``min(<arg1>, min(<arg2>, <arg3>))`` and suggests using a simplified form of ``min(<arg1>, <arg2>, <arg3>)``. Same goes for ``max`` usage. The logic is as follows: it detects calls to either ``min`` or ``max`` functions, and whenever one of their arguments is that same function, it emits the message. Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add named-expr-without-context check (#7763)Marc Mueller2022-11-143-0/+9
|
* Extend `consider-using-join` to detect non-empty separators (#7481)Levi Gruspe2022-11-131-1/+1
|
* Rename `broad-except` and new check `broad-exception-raised` (#7709)Dani Alcala2022-11-051-1/+1
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move `consider-using-augmented-assign` to `CodeStyle` extension (#7628)Marc Mueller2022-10-161-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false negative ``no-member`` when the code was a `manual` augmented ↵Dani Alcala2022-09-232-0/+29
| | | | assignments (#7509)
* Replace no-method-argument with no-self-argument when variadic args present ↵Jakub Kuczys2022-09-234-4/+27
| | | | | | (#7518) Also add method name to the error message
* Add functional test for false positive `not-callable` (#5593)Mark Byrne2022-09-171-0/+11
| | | | | | Closes #5113 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove Python 2 code from the tests & refactor (#7320)Mark Byrne2022-08-1822-85/+78
| | | | | | | - Refactor Classes which inherit from `object`. - Remove `import print_function from __future__`. - Remove assignments to `__revision__` from the functional test module when it is never used throughout the module. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false positive for `no-self-argument` (#7301)Mark Byrne2022-08-132-5/+27
| | | | | * Fix false positive for `no-self-argument` when a staticmethod is applied to a function but uses a different name. Closes #7300
* Don't emit ``super-init-not-called`` for abstract ``__init__`` methods (#7227)Daniël van Noord2022-07-312-2/+1
|
* Add regression test for #7109 (#7112)Jacob Walls2022-07-181-0/+8
|
* Add regression test for #5832 (#7105)Jacob Walls2022-07-171-1/+5
|
* Fix false negative for `nonlocal-without-binding`. (#7099)Mark Byrne2022-07-062-5/+21
|
* [no-member] Add a regression test for a false positive (#7095)Pierre Sassoulas2022-06-301-0/+13
| | | Closes #3803
* Add regression test for #6497 (#6498)Jacob Walls2022-05-091-0/+6
|
* Move no-self-use to optional extension (#6448)Marc Mueller2022-05-059-108/+9
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add `comparison-of-constants` checker (#6413)omarandlorraine2022-05-041-1/+1
| | | | | Co-authored-by: Sam M W <smw@alertergroup.co.uk> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* C2901 & C2902: New checks for unnecessary lambda expression usage (#6004)Joe Young2022-05-043-2/+3
| | | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix a crash in the ``unsupported-membership-test`` checker involving tuple ↵Jacob Walls2022-04-194-6/+32
| | | | | | unpacking (#6367) An assumption of direct parentage between `AssignName` and `Assign` was violated by tuple unpacking.
* Remove the 'no-init' message tat was not emitted anywayPierre Sassoulas2022-04-182-2/+2
| | | | | | See https://github.com/PyCQA/pylint/issues/2409#issuecomment-1100952171 Closes #2409
* Normalize the pylint disables in functional testsPierre Sassoulas2022-04-181-1/+1
|
* Remove removed messages from the tests (#6268)Daniël van Noord2022-04-121-1/+1
|
* Fix E1102 / ``not-callable`` false positive for property that returns a ↵Tushar Sadhwani2022-04-021-0/+24
| | | | | | | lambda function conditionally (#6068) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* C2801: New check for manual __dunder__ methods (#5938)Joe Young2022-03-301-1/+1
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Change 'nonexistent-operator' to allow repeated unary ops (with space or ↵Sergey B Kirpichev2022-03-291-0/+4
| | | | | | | parens) (#6008) Closes #5769 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix #1555: Fix false negative for `no-member` when assigning instance ↵Jacob Walls2022-03-252-0/+38
| | | | | attribute to itself (#5544) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Use ``node.position`` in ``add_message`` if available (#5897)Daniël van Noord2022-03-1215-30/+30
|
* Add tests for #4826 (#5696)Daniël van Noord2022-03-121-0/+13
|
* Move functional test files to new structureDaniël van Noord2022-02-109-0/+0
|
* Clearer error message for useless-else-x type messages (#5736)Pierre Sassoulas2022-01-304-28/+28
| | | | | | | | | | * Clearer error message for useless-else-x type message See https://github.com/PyCQA/pylint/pull/5614#issuecomment-1023614434 for rationale. Closes #5598 Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix typos in unit test docstrings (#5739)Jacob Walls2022-01-283-3/+3
|
* Fix ``super-init-not-called`` if parent or ``self`` is a ``Protocol`` (#5697)Daniël van Noord2022-01-241-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* ``unused-variable`` when `nonlocal` name in a multiple-assignment (#5700)Mark Byrne2022-01-191-0/+14
| | | | | | | | * Fixed false positive for ``unused-variable`` when a `nonlocal` name is assigned as part of a multi-name assignment. Closes #3781 Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Add a checker for misleading unicode (#5311)Kound2022-01-131-2/+2
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Improve non ascii checker (#5643)Kound2022-01-1059-5/+417
| | | | | | | | | | * split ``non-ascii-name`` into 3 different msgs - non-ascii-identifier (replaces non-ascii-name) - non-ascii-file-name (a warning) - non-ascii-module-import (only considering the namespace the import is imported in) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix ``not-callable`` for attributes that alias ``NamedTuple`` (#5537)Daniël van Noord2021-12-172-2/+14
|
* Fix typos over the whole codebase (#5540)Kian Meng, Ang2021-12-171-1/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Move tests from ``TestComparison`` to functional tests (#5520)Daniël van Noord2021-12-132-15/+20
| | | | * Remove some redundant tests