summaryrefslogtreecommitdiff
path: root/astroid/brain/brain_numpy_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Improve performance of `looks_like_numpy_member()` (#2178)Jacob Walls2023-05-141-18/+13
| | | Avoids 32% of the calls to isinstance() when linting astroid
* [PyCQA migration] Upgrade links to the repositories in code and docPierre Sassoulas2023-03-291-2/+2
|
* Some modifications for pep237 with pydocstringformatter (#1792)Pierre Sassoulas2023-01-091-2/+3
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Initial pass with ``pydocstringformatter``Daniël van Noord2023-01-091-4/+2
|
* Fix crash if numpy doesn't have version (#1892)Tushar Sadhwani2022-12-081-1/+1
| | | | | | | | | | | | | | | | | | * Fix crash if numpy doesn't have version * Add changelog entry * re run jobs * Update ChangeLog Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add some InferenceContext annotations (#1883)Nick Drozd2022-11-221-1/+2
|
* Update typing for Python 3.7 (1) (#1555)Marc Mueller2022-05-131-2/+3
|
* Simplify hard to maintain copyright notice (#1441)Pierre Sassoulas2022-03-121-8/+1
| | | | | | | | | | | | | | * Simplify hard to maintain copyright notice git is the source of truth for the copyright, copyrite (the tool) was taking exponentially longer with each release, and it's polluting the code with sometime as much as 50 lines of names. * Add a pre-commit hook to check the copyright notice * Fix the existing file so they have a notice * Fix the spacing after the copyright notice * Add a script to generate the CONTRIBUTORS.txt Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Bump astroid to 2.10.0, update changelogv2.10.0Pierre Sassoulas2022-02-271-0/+1
|
* Bump astroid to 2.9.2, update changelogv2.9.2Alexander Shadchin2022-01-041-1/+1
|
* Bump astroid to 2.9.1, update changelogv2.9.1Pierre Sassoulas2021-12-311-0/+1
|
* Upgrade to pylint 2.12 and enable ``for_any_all`` checker (#1277)Nick Drozd2021-11-271-7/+4
| | | | | | | | * Enable for_any_all check * Upgrade to pylint 2.12 in pre-commit configuration * Fix new Pylint warnings * Upgrade the regex for Mixin Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bug pylint 4326 (#1183)hippo912021-10-051-0/+26
| | | | | | | * Adds unittest dealing with class subscript * Adds support of type hints inside numpy's brains * Adds unit test to check astroid does not crash if numpy is not available
* Remove use of deprecated node_classes and scoped_node API in astroidPierre Sassoulas2021-08-101-1/+1
|
* Bump astroid to 2.6.4, update changelogPierre Sassoulas2021-07-201-1/+1
|
* Bump astroid to 2.6.3, update changelogv2.6.3Pierre Sassoulas2021-07-191-0/+1
|
* Fix copyright links (#1084)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Fix link to cpython
* Import directly from modules in astroid.brain.*Pierre Sassoulas2021-06-191-12/+9
|
* Fix issue #891Pierre Sassoulas2021-04-101-1/+1
| | | | Remove outdated COPYING and rename COPYING.LESSER
* Prepare for 2.5.2 releaseastroid-2.5.2Pierre Sassoulas2021-03-281-0/+1
|
* Reformats according to blackhippo912021-03-051-1/+4
|
* "import numpy" has to be detected as a valid import of numpyhippo912021-03-051-1/+1
|
* Upgrade copyrite noticePierre Sassoulas2021-02-281-1/+1
|
* Update copyright noticehippo912021-02-151-1/+1
|
* New copyright noticeshippo912020-12-271-1/+1
|
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+2
|
* Add a call to register_transform for each numpy function in case the current ↵hippo912020-01-051-2/+10
| | | | | | | | | | | | node is an astroid.Name instance The problem was that astroid could not infer the result of a call to `numpy.append` because this function calls the `concatenate` function. This last function is inferred thanks to the `brain_numpy_core_multiarray` module but only when the corresponding node is an `astroid.Attribute` (for example numpy.concatenate). It turns out that in the source of the append function the node that realises the call to concatenate is a `astroid.Name`. Thus the correction proposed here is to register the concatenate inference tip function in order to apply it, also, to `astroid.Name`. Close #666
* Make sure that node.expr points to a Name before calling looks_like_numpy_memberClaudiu Popa2019-06-201-0/+1
|
* Avoid use of inference engine before it is fully set up. Add docstringshippo912019-05-251-2/+34
|
* Corrects the way a numpy member is identifiedhippo912019-04-261-1/+1
|
* Refomat according to blackhippo912019-04-211-3/+5
|
* Factorize functions inference systemhippo912019-04-201-0/+21