summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Recognize stub ``pyi`` Python files. (#2182)HEADmainMark Byrne2023-05-169-0/+22
| | | | | | | Recognize stub ``pyi`` Python files. Refs pylint-dev/pylint#4987 Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Skip recursion test on PyPyJacob Walls2023-05-151-1/+4
| | | | Reapplied from c1e4c95.
* Handle ``objects.Super`` in `helpers.object_type()` (#2177)Jacob Walls2023-05-141-0/+1
|
* Remove pylint disables and resolves TODO in pylintrc (#2175)Jacob Walls2023-05-122-2/+2
|
* Complete cache key for inference tip (#2158)Jacob Walls2023-05-063-11/+24
| | | | | The cache key was lacking the `context` arg. Co-authored-by: Sylvain Ackermann <sylvain.ackermann@gmail.com>
* Fix urllib3 tests following the release of v2.0.0 (#2162)Pierre Sassoulas2023-05-011-3/+4
|
* Allow passing ``UninferableBase`` to ``safe_infer``Daniël van Noord2023-05-011-0/+5
|
* Remove deprecated doc attribute (#2154)Marc Mueller2023-04-256-123/+0
|
* Remove deprecated `is_sys_guard` + `is_typing_guard` (#2153)Marc Mueller2023-04-251-60/+0
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix the signature of ``infer_call_result``Daniel van Noord2023-04-252-2/+2
|
* Make all arguments to ``nodes.NodeNG.__init__`` required (#2138)Daniël van Noord2023-04-252-3/+29
|
* Merge branch 'maintenance/2.15.x' into mainMarc Mueller2023-04-241-4/+4
|\
| * Various TryStar fixes (#2142)Marc Mueller2023-04-241-4/+4
| |
| * Suppress UserWarning when finding module specs (#2121) (#2122)github-actions[bot]2023-04-161-0/+10
| | | | | | | | | | | | | | | | | | | | | | Found when linting this code: ``` import setuptools import pip ``` (cherry picked from commit 6723e635e54e991a4304e45293308f5076b0bcb8) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
| * Add xfailJacob Walls2023-04-161-0/+3
| |
| * Fix infer_call_result() crash on methods called with_metaclass() (#2118)Jacob Walls2023-04-161-0/+5
| |
| * Support attrs decorators even if they are imported from attrs (#2059) (#2073)Pierre Sassoulas2023-04-011-2/+32
| | | | | | | | | | | | | | | | Use inference to determine membership of ``attr(s)`` module Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> (cherry picked from commit 489c90fb29970d9362f21f26247bd45a39832dcd) Co-authored-by: alm <alonme@users.noreply.github.com>
| * Restore setting a Call as a base for classes using `six.with_metaclass` ↵github-actions[bot]2023-03-262-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (#2049) (#2067) Harden support for using enums as metaclasses. Fixes the crash in PyCQA/pylint#5935 by adopting the check for not-none bases as in ClassDef._inferred_bases without recausing the false positive reported in PyCQA/pylint#7506, which requires correct bases. (cherry picked from commit b5ebf994a1c6039fa8ca4706889e007700cdf41a) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* | Remove unused constants (#2141)Marc Mueller2023-04-248-60/+15
| | | | | | | | | | | | * Remove `PY38_PLUS` constant * Remove `BUILTINS` constants * Remove `Load` + `Store` + `Del` * Remove `BOOL_SPECIAL_METHOD`
* | Remove cachedproperty decorator (#2140)Marc Mueller2023-04-241-17/+1
| |
* | Drop support for Python 3.7 (#2137)Marc Mueller2023-04-231-5/+1
| |
* | Fix constructors of ``Module`` (#2133)Daniël van Noord2023-04-222-24/+1
| |
* | Fix constructors of ``ClassDef`` (#2130)Daniël van Noord2023-04-223-7/+36
| |
* | Fix constructors of ``FunctionDef``Daniël van Noord2023-04-221-3/+17
| | | | | | | | Co-authored-by: Nick Drozd <nicholasdrozd@gmail.com>
* | Add ``attr.Factory`` to the recognized class attributes for classes ↵Mark Byrne2023-04-191-1/+7
| | | | | | | | | | | | decorated with ``attrs``. Closes pylint-dev/pylint#4341
* | Decouple ``FunctionDef`` and ``Lambda`` (#2115)Daniël van Noord2023-04-171-0/+33
| | | | | | As discussed in #2112 we really need to decouple this nodes.
* | Suppress UserWarning when finding module specs (#2121)Jacob Walls2023-04-161-0/+10
| | | | | | | | | | | | | | Found when linting this code: ``` import setuptools import pip ```
* | Port property-related workaround from `infer_functiondef` to ↵Jacob Walls2023-04-161-0/+8
| | | | | | | | `infer_property` (#2119)
* | Fix infer_call_result() crash on methods called with_metaclass() (#2118)Jacob Walls2023-04-151-0/+5
| |
* | Use `safe_infer` in `_unpack_args` and `_unpack_keywords` (#2117)Tushar Sadhwani2023-04-151-6/+49
| |
* | [pre-commit.ci] pre-commit autoupdate (#2097)pre-commit-ci[bot]2023-04-042-2/+2
| | | | | | | | | | | | | | | | | | * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.259 → v0.0.260](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.259...v0.0.260) - [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Fix constructors of ``Arguments``Daniël van Noord2023-04-031-1/+5
| |
* | Fix constructors of ``AssignName`` (#2077)Daniël van Noord2023-04-032-3/+22
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Don't add typing stubs for packages that we only use in tests (#2080)Daniël van Noord2023-04-038-8/+8
| |
* | Support attrs decorators even if they are imported from attrs (#2059)alm2023-04-011-2/+32
| | | | | | | | | | Use inference to determine membership of ``attr(s)`` module Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* | [PyCQA migration] Upgrade links to the repositories in code and docPierre Sassoulas2023-03-2960-192/+192
| |
* | Restore setting a Call as a base for classes using `six.with_metaclass` (#2049)Jacob Walls2023-03-262-3/+16
| | | | | | | | | | | | | | | | Harden support for using enums as metaclasses. Fixes the crash in PyCQA/pylint#5935 by adopting the check for not-none bases as in ClassDef._inferred_bases without recausing the false positive reported in PyCQA/pylint#7506, which requires correct bases.
* | Upgrade pre-commit configuration and move to ruff (#2057)Pierre Sassoulas2023-03-143-4/+3
| |
* | Add xfailJacob Walls2023-03-121-0/+3
|/
* Add 'TryStar' nodes from Python 3.11 #1516 (#2028)Pierre Sassoulas2023-03-051-0/+111
| | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Clear context cache in AstroidManager.clear_cache()Jacob Walls2023-03-041-0/+2
|
* Infer returns from match cases (#2042)Jacob Walls2023-03-031-0/+19
|
* Update submodule_path after finding an editable install (#2033)noah-weingarden2023-02-264-0/+86
|
* Ignore ``DeprecationWarnings`` for a test that tests old behaviour (#2037)Daniël van Noord2023-02-231-1/+5
|
* Fix `are_exclusive` function for walrus operator (#2023)ostr000002023-02-131-1/+76
|
* [brain tests] Burst threading from the main filePierre Sassoulas2023-02-123-43/+54
|
* [brain tests] Burst pytest from the main filePierre Sassoulas2023-02-123-28/+34
|
* Replace and deprecate modutils.is_standard_module() (#2015)Avram Lubkin2023-02-122-25/+129
|
* Fix '_infer_str_format_call' crash when the string it analyses are ↵Pierre Sassoulas2023-02-121-1/+20
| | | | | | | | uninferable (#2024) Closes PyCQA/pylint#8109
* [brain tests] Burst enum tests from the main filePierre Sassoulas2023-02-092-483/+496
|