summaryrefslogtreecommitdiff
path: root/tests/functional
Commit message (Collapse)AuthorAgeFilesLines
* Add optional `prefer-typing-namedtuple` message (#8681)HEADmainJacob Walls2023-05-163-0/+14
| | | Closes #8660
* Add new checker `kwarg-superseded-by-positional-arg` and fix a false ↵Mark Byrne2023-05-168-20/+87
| | | | | | | | | | positive (#8644) * Fix a false positive for ``redundant-keyword-arg`` when a function, with a keyword-only-parameter and ``**kwargs``, is called with a positional argument and a keyword argument where the keyword argument has the same name as the positional-only-parameter. * Add new checker ``kwarg-superseded-by-positional-arg`` which emits a warning message for the above scenario. Closes #8558 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix a false negative for ``too-many-arguments`` and positional-only and ↵Mark Byrne2023-05-153-1/+7
| | | | | | | | keyword-only arguments (#8674) Closes #8667
* Regression fix for `unused-variable` false negative (#8684)Zen Lee2023-05-152-0/+18
|
* Fix crash when deleting from a dict returned from a call (#8678)Jacob Walls2023-05-122-0/+8
|
* [use-implicit-booleaness] Reinstate tests that are expected to failPierre Sassoulas2023-05-031-10/+10
|
* Add applicability notes for `compare-to-empty-string/zero` (#8592)Jason Lau2023-05-033-44/+44
| | | | | | The extension `compare-to-empty-string` is only applicable when the expression being compared is strictly a `str`. The extension `compare-to-zero` is only applicable when the expression being compared is strictly an `int`.
* Switch from ' to " in use-implicit-booleaness-not-comparisonPierre Sassoulas2023-05-031-32/+32
| | | | | Because empty string needs to " because node.as_string() use simple quote.
* Merge the empty-string extensions to 'implicit_booleaness_checker'Pierre Sassoulas2023-05-026-30/+30
|
* Merge the compare-to-zero extensions to 'implicit_booleaness_checker'Pierre Sassoulas2023-05-026-54/+54
|
* Fix false negative for calling module-level function before definition (#8494)Jacob Walls2023-04-293-10/+23
|
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-249-18/+12
| | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests
* Fix a false positive for ``bad-dunder-name`` when there is a user-defined ↵Mark Byrne2023-04-241-0/+3
| | | | | ``__index__`` method. (#8619) Closes #8613
* Update pytest requirement from ~=7.2 to ~=7.3 (#8562)dependabot[bot]2023-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | | * Update pytest requirement from ~=7.2 to ~=7.3 Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/7.2.0...7.3.0) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production ... * Disable import-error as attrs is no longer a test dependency --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Modified all occurences of "a f-string" to "an f-string"Elazrod562023-04-203-32/+32
|
* Modified comment on line 147 to improve spellingElazrod562023-04-201-1/+1
|
* Fix FP `used-before-assignment` for statements guarded under same test (#8581)Jacob Walls2023-04-162-1/+50
|
* Improve output of `consider-using-generator` message for `min()` calls with ↵Jacob Walls2023-04-162-0/+6
| | | | `default` keyword (#8582)
* Fix `used-before-assignment` TYPE_CHECKING false negatives (#8431)Zen Lee2023-04-152-0/+20
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix false negative for no-value-for-parameter: positional-only args and ↵Mark Byrne2023-04-143-0/+18
| | | | **kwargs (#8575)
* Fix false positive for ``keyword-arg-before-vararg`` (#8571)Mark Byrne2023-04-133-0/+18
| | | | | * Fix false positive for ``keyword-arg-before-vararg`` when a positional-only parameter with a default value precedes ``*args``. Closes #8570
* Fix `unused-import` to check`dummy-variables-rgx` (#8566)RSTdefg2023-04-121-0/+5
| | | | | Resolve #8500 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false positive for ``positional-only-arguments-expected`` when a ↵Mark Byrne2023-04-091-0/+18
| | | | function contains both a positional-only parameter that has a default value, and ``**kwargs``. (#8556)
* Also check the typealias naming style for TypeAlias variables defined in ↵Yilei "Dolee" Yang2023-04-072-0/+12
| | | | functions. (#8537)
* Fix isinstance-second-argument-not-valid-type for union types with NoneRogdham2023-04-072-4/+8
|
* Fix typelias `invalid-name` false positives for Union variables without ↵Yilei "Dolee" Yang2023-04-072-3/+6
| | | | assignment. (#8541)
* Do not emit `logging-not-lazy` for explicitly concatenated strings. (#8546)Yilei "Dolee" Yang2023-04-072-7/+12
|
* Fix check unused arguments false positive bug (#8542)Théo Battrel2023-04-062-0/+23
| | | | | | | | | | | | | | | | | | | Problem: the special method `__new__` must match the arguments of the `__init__` method even if `__new__` method does not use them. This generate `unused-argument` for the `__new__` method. Fix: the unused arguments check should not be done on the `__new__` method if the `__init__` method is defined in the same class. Update `unused-argument` test to include a check for the case of `__init__` and `__new__` being defined in a class but `__new__` does not use all of the argument. This is fine because `__new__` must have the same argument of `__init__`. Update with a second check in case of `__init__` being not defined in a class. Then the unused arguments check must be done on `__new__`. Fixes https://github.com/pylint-dev/pylint/issues/3670
* Handle patterns in ignored-modules when checking for no-name-in-module (#7579)Daniel Mouritzen2023-04-033-2/+8
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jared Proffitt <jaredproffitt@gmail.com>
* Add regression test for #7506 (#8432)Jacob Walls2023-04-032-8/+11
|
* [cleanup] Upgrade more doc following the PyCQA migrationPierre Sassoulas2023-03-3110-11/+11
|
* Fix `used-before-assignment` false positive for `TYPE_CHECKING` elif branch ↵Zen Lee2023-03-305-7/+22
| | | | | | imports (#8441) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-29175-272/+272
|
* Allow integers in TypeAlias names (#8488)Stephane Odul2023-03-282-10/+14
|
* Fix `unnecessary-lambda` false positive for lambdas using its parameters in ↵cherryblossom2023-03-282-0/+13
| | | | | | | their body (#8498) Fixes #8496
* [testutil] Fix the algorithm for functional test discoveryPierre Sassoulas2023-03-281-0/+0
|
* Don't consider ``Union`` to always be a type alias (#8489)Daniël van Noord2023-03-231-0/+4
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [cleanup] Move tests starting with 'unbalanced' in a subdirPierre Sassoulas2023-03-235-0/+0
|
* [cleanup] Move tests starting with 'invalid_all' in a subdirPierre Sassoulas2023-03-2310-0/+0
|
* [cleanup] Move tests starting with 'postponed' in a subdirPierre Sassoulas2023-03-2316-0/+0
|
* [cleanup] Move tests starting with 'singledispatch' in a subdirPierre Sassoulas2023-03-2312-0/+0
|
* Add Python 3.8+ `asyncSetUp` to "defining-attr-methods" list (#8403)Samuel FORESTIER2023-03-112-0/+14
|
* Add regression test for #5288 (#8385)Jacob Walls2023-03-072-0/+13
|
* Accept values of the form ``<class name>.<attribute name>`` for the ↵Mark Byrne2023-03-033-5/+16
| | | | | | | | `exclude-protected` list (#8364) Closes #7343 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Prevent emitting ``invalid-name`` on 'global' redefinition (#8337)Mark Byrne2023-02-274-2/+11
| | | | | Closes #8307
* Add ``invalid-name`` check for ``TypeAlias`` names (#7116)Daniël van Noord2023-02-2615-14/+78
|
* Add new checker `bad-chained-comparison` (#7990)Zen Lee2023-02-264-2/+64
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add new check "implicit-flag-alias" (#8345)James Addison2023-02-262-0/+54
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [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>
* Only count obviously non-terminating while-loops as return-ended (#8292)Nick Drozd2023-02-232-1/+52
|