summaryrefslogtreecommitdiff
path: root/tests/unittest_nodes.py
Commit message (Collapse)AuthorAgeFilesLines
* [brain tests] Rename 'unittest' prefix to 'test'Pierre Sassoulas2023-02-091-1949/+0
|
* [unittest brain] Remove unused unittest.mainPierre Sassoulas2023-02-091-4/+0
|
* Add support for keyword only argument default valuesDaniël van Noord2023-02-051-1/+16
|
* Initial pass with ``pydocstringformatter`` over tests (#1949)Daniël van Noord2023-01-091-17/+14
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix ``pylint`` issues and remove useless disablesDaniël van Noord2022-07-061-1/+0
|
* Remove remaining references to old Mixin base nodesDaniël van Noord2022-06-201-1/+1
|
* Update typing for Python 3.7 (1) (#1555)Marc Mueller2022-05-131-3/+6
|
* Remove some test skips (#1554)Jacob Walls2022-05-121-3/+0
|
* Fix ``col_offset`` attribute for nodes involving ``with`` on ``PyPy`` (#1520)Daniël van Noord2022-04-221-6/+38
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Upgrade mypy to 0.940 (#1466)Daniël van Noord2022-03-121-3/+3
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Simplify hard to maintain copyright notice (#1441)Pierre Sassoulas2022-03-121-28/+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>
* Replace platform import (#1459)Marc Mueller2022-03-091-7/+0
|
* Deprecate accessing and setting the ``doc`` attribute on nodes (#1434)Daniël van Noord2022-03-061-2/+6
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Fix F403 wildcart import used in astroid/__init__.py (#1271)Pierre Sassoulas2022-03-031-0/+1
| | | | | | | * Fix F403 wildcart import used in astroid/__init__.py And apply flake8 on setup.py and astroid/__init__.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add doc_node attribute (#1276)kasium2022-02-281-5/+14
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> 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-1/+3
|
* Add future=True to frame calls (#1305)Tushar Sadhwani2021-12-291-0/+10
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix frame() error on inferred node (#1263)Tushar Sadhwani2021-12-291-0/+8
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Upgrade to pylint 2.12 and enable ``for_any_all`` checker (#1277)Nick Drozd2021-11-271-2/+2
| | | | | | | | * 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>
* Bump astroid to 2.9.0, update changelogv2.9.0Pierre Sassoulas2021-11-211-1/+1
|
* Add as_string visitor for Unknown node (#1268)Marc Mueller2021-11-211-0/+5
|
* Filter ``DeprecationWarning`` in tests of deprecated methodsDaniël van Noord2021-11-181-0/+2
|
* Add typing and deprecation warnings to ``NodeNG.statement`` (#1217)Daniël van Noord2021-11-071-0/+7
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Bump astroid to 2.8.4, update changelogv2.8.4Pierre Sassoulas2021-10-251-1/+1
|
* Add assignment expressions to correct ``locals`` for certain parents (#1213)Daniël van Noord2021-10-251-0/+75
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Change ``frame`` and ``scope`` of ``NamedExpr`` for certain parents (#1221)Daniël van Noord2021-10-241-0/+111
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Move skip in `ArgumentsNodeTC` to correct function (#1222)Daniël van Noord2021-10-241-3/+3
| | | | * Move skip in `ArgumentsNodeTC` to correct function
* Bump astroid to 2.8.3, update changelogv2.8.3Pierre Sassoulas2021-10-171-1/+1
|
* Bump astroid to 2.8.1, update changelogv2.8.1-rc1Pierre Sassoulas2021-10-061-0/+1
|
* Fix regression on ClassDef inference (#1181)Daniël van Noord2021-09-171-0/+5
|
* Add typing to scope() (#1170)Daniël van Noord2021-09-151-1/+0
|
* Add typing in tests directory (#1163)Pierre Sassoulas2021-09-141-107/+116
| | | | | | | * Add typing in the tests/ directory * Add some assert for mypy's sake * Avoid adding mypy_extension by using pytest skip
* astroid.context: import object one by one instead of the entire modulePierre Sassoulas2021-08-301-6/+14
|
* Replace the constant BUILTINS by the string 'builtins'Pierre Sassoulas2021-08-191-4/+4
| | | | | | | | This make for clearer and also sligtly faster code (means time seems to decrese by 0.68% with this change alone (astroid/pylint) in the pylint tests benchmarks). Done because we were using an import from astroid from astroid.bases for one of those, which is kinda messy.
* Fix expression has type "str", base class "_NodeTest" defined the type as "None"Pierre Sassoulas2021-08-181-1/+1
|
* Bump astroid to 2.7.0, update changelogv2.7.0Pierre Sassoulas2021-08-151-1/+2
|
* Remove use of deprecated node_classes and scoped_node API in astroidPierre Sassoulas2021-08-101-1/+1
|
* Add 'Pattern' to the astroid.nodes's APIPierre Sassoulas2021-08-051-2/+2
|
* Create 'nodes' package, deprecate 'node_classes' and 'scoped_nodes'Pierre Sassoulas2021-08-051-2/+2
| | | | | | | Add deprecation warning and retro-compatibility for old API in node_classes and scoped_nodes. To be removed in 3.0.0.
* Conditional test pickle (#935)René Fritze2021-08-051-1/+21
| | | | | | | * [tests] adds a test for conditional definition lookup * [tests] duplicate the conditional def test into a sub package * add pyMOR example code and change test to only check for Uninferable Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump astroid to 2.6.6, update changelogv2.6.6Pierre Sassoulas2021-08-031-1/+1
|
* Update pylint to 2.9.6 (#1114)Marc Mueller2021-08-021-3/+3
| | | | * Update pylint to v2.9.6 * Code updates
* 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-1/+1
|
* Add new If guard helper methods (#1099)Marc Mueller2021-07-131-0/+58
| | | | | * Add new if guard helper methods Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix copyright links (#1084)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Fix link to cpython
* Create a constant for BUILTINS in astroid.constantsPierre Sassoulas2021-06-261-3/+1
|
* Rename non obvious PY3X constant to PY3X_PLUSPierre Sassoulas2021-06-211-6/+6
| | | | See https://github.com/PyCQA/astroid/pull/1069\#issuecomment-865206120