summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Search for pyproject.toml config file in parent dirs (#7163)Mikhail f. Shiryaev2023-04-301-0/+41
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix false negative for calling module-level function before definition (#8494)Jacob Walls2023-04-293-10/+23
|
* Add home-assistant to primer and remove old external primer (#8612)Jacob Walls2023-04-294-95/+5
|
* Added escaping of vertical bar character in annotation labels (#8610)ViRuSTriNiTy2023-04-2616-11/+44
|
* Bump astroid to 3.0.0a1 (#8626)Marc Mueller2023-04-251-1/+8
|
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-2412-39/+15
| | | | | * 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)
* Cope with changes to `Arguments` constructorJacob Walls2023-04-161-1/+1
|
* Cope with changes to `AssignAttr` constructorJacob Walls2023-04-161-1/+8
|
* 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-122-1/+6
| | | | | 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
|
* refactor pyreverse tests to use temporary directory (#8529)Andreas Finkler2023-04-021-15/+7
|
* [pyreverse] Bugfix: strip "/" at the end of the file (#8517)Alvaro Frias2023-04-021-0/+17
| | | | Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add Pyreverse option to exclude standalone nodes (#8520)Nick Drozd2023-04-027-0/+58
| | | | | | | | | | | * Add Pyreverse option to exclude standalone nodes * Add test * Add package test * Fix test names * Clean up test files
* [cleanup] Upgrade more doc following the PyCQA migrationPierre Sassoulas2023-03-3117-26/+26
|
* 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-29281-490/+490
|
* [crash template] Link to blank issue so it's possible to copy pastePierre Sassoulas2023-03-291-4/+8
|
* Allow integers in TypeAlias names (#8488)Stephane Odul2023-03-282-10/+14
|
* [deprecation] Make 'OutputLine' require a fixed number of args (#8474)Pierre Sassoulas2023-03-281-47/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix `unnecessary-lambda` false positive for lambdas using its parameters in ↵cherryblossom2023-03-282-0/+13
| | | | | | | their body (#8498) Fixes #8496
* [testutil] Do not count files with leading underscoresPierre Sassoulas2023-03-282-7/+7
|
* [refactor] Separate assertion from setup in functional test's testPierre Sassoulas2023-03-281-21/+32
|
* [testutil] Display recursive call for crowded functional test dirPierre Sassoulas2023-03-284-0/+16
|
* [testutil] Fix the algorithm for functional test discoveryPierre Sassoulas2023-03-283-3/+8
|
* [functional tests] Display all violations for disorganized directoriesPierre Sassoulas2023-03-281-1/+5
|
* [testutil] Add proper test for the functional tests helpersPierre Sassoulas2023-03-2817-29/+132
|
* 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
|
* [deprecation] Remove duplicated utils typing guards check (#8475)Pierre Sassoulas2023-03-221-17/+16
|
* Fix incorrect preferred-modules matchesDaniël van Noord2023-03-211-0/+17
| | | | Co-authored-by: d33bs <dave.bunten@cuanschutz.edu>
* [test multiprocessing] Fix tests for unpickable plugins (#8470)Pierre Sassoulas2023-03-211-4/+3
|