summaryrefslogtreecommitdiff
path: root/tests/unittest_modutils.py
Commit message (Collapse)AuthorAgeFilesLines
* [brain tests] Rename 'unittest' prefix to 'test'Pierre Sassoulas2023-02-091-448/+0
|
* [unittest brain] Remove unused unittest.mainPierre Sassoulas2023-02-091-4/+0
|
* Add support for custom import hooks (#1752)Daniël van Noord2023-02-051-5/+1
| | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Initial pass with ``pydocstringformatter`` over tests (#1949)Daniël van Noord2023-01-091-10/+8
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [flake8] Set the max line length to 110 instead of 138Pierre Sassoulas2022-09-191-2/+0
| | | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
* Fix crash in `ExplicitNamespacePackageFinder` (#1714)Jacob Walls2022-08-091-0/+17
| | | | | | | * Add skip if no `six` * `urllib3` does appear to be required * Check `submodule_search_locations` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Capture and log messages emitted by C modules when importing them (#1514)Jacob Walls2022-05-231-1/+36
| | | | | Prevent contaminating programmatic output, e.g. pylint's JSON reporter. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Let `AstroidManager.clear_cache` act on other caches (#1521)Jacob Walls2022-05-061-1/+3
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Simplify hard to maintain copyright notice (#1441)Pierre Sassoulas2022-03-121-20/+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-1/+1
|
* Bump astroid to 2.9.3, update changelogv2.9.3Pierre Sassoulas2022-01-091-1/+2
|
* Fix finding packages without an ``__init__.py`` (#1333)Daniël van Noord2022-01-091-0/+25
|
* 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
|
* Remove distutils path patching (#1321)Daniël van Noord2021-12-311-5/+0
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add typing in tests directory (#1163)Pierre Sassoulas2021-09-141-49/+49
| | | | | | | * Add typing in the tests/ directory * Add some assert for mypy's sake * Avoid adding mypy_extension by using pytest skip
* Bug pylint 3342 (#1148)hippo912021-08-291-0/+38
| | | | | | | | | | | | | | | | | | | | | * Adds some type hints * Adds a logger module * Remove this useless module * It is probably not a good idea to apply transforms on module which have been authorized to be directly imported * Adds a function named is_module_name_part_of_extension_package_whitelist which returns True if the beginning of a module dotted name is part of the package whitelist in argument * Adds the extension_package_whitelist variable to the brainless manager in order unittest dealing with this managert to be ok * Adds two tests that check the behavior of the is_module_name_part_of_extension_package_whitelist function * Updating Changelog * Adds explanation to the ChangeLog entry Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump astroid to 2.7.0, update changelogv2.7.0Pierre Sassoulas2021-08-151-1/+1
|
* Remove use of deprecated node_classes and scoped_node API in astroidPierre Sassoulas2021-08-101-2/+2
|
* 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-1/+1
| | | | * 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
|
* Fix copyright links (#1084)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Fix link to cpython
* Fix pep8 in unittest test function's namesPierre Sassoulas2021-06-201-13/+13
|
* Prepare for 2.5.8 release (#1013)v2.5.8Pierre Sassoulas2021-06-071-1/+1
|
* Update copyright notice for 2.5.7v2.5.7Pierre Sassoulas2021-05-291-0/+2
|
* Fix 930 pyreverse regression (#984)DudeNr332021-05-241-0/+12
| | | | | * Fix detection if a given module is relative to the specified file or package * Remove obsolete suppression of false-positive "no-member" * Add missing imports, do not instantiate PathFinder.
* [pre-commit.ci] pre-commit autoupdate (#985)pre-commit-ci[bot]2021-05-111-2/+2
| | | | | | | | | | | | | | | | | | * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v2.13.0 → v2.15.0](https://github.com/asottile/pyupgrade/compare/v2.13.0...v2.15.0) - https://github.com/ambv/black → https://github.com/psf/black - [github.com/psf/black: 20.8b1 → 21.5b1](https://github.com/psf/black/compare/20.8b1...21.5b1) - [github.com/pre-commit/mirrors-prettier: v2.2.1 → v2.3.0](https://github.com/pre-commit/mirrors-prettier/compare/v2.2.1...v2.3.0) - https://gitlab.com/pycqa/flake8 → https://github.com/PyCQA/flake8 - [github.com/PyCQA/flake8: 3.9.0 → 3.9.2](https://github.com/PyCQA/flake8/compare/3.9.0...3.9.2) * Update requirements file * Black changes Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add an isort configuration in setup.cfg and apply itPierre Sassoulas2021-04-191-3/+4
| | | | Except on astroid/__init__.py because of circular imports
* Fix issue #891Pierre Sassoulas2021-04-101-1/+1
| | | | Remove outdated COPYING and rename COPYING.LESSER
* Upgrade copyrite noticePierre Sassoulas2021-02-281-1/+3
|
* Fix black issuesMarc Mueller2021-02-271-2/+1
|
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-211-1/+0
|
* Update copyright noticehippo912021-02-151-0/+1
|
* Back to original file after debugging sessionhippo912020-12-281-2/+1
|
* Adds debug msghippo912020-12-281-1/+2
|
* New copyright noticeshippo912020-12-271-0/+1
|
* Remove dependency on imp.Peter Kolbus2020-11-271-1/+18
|
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+4
|
* Kill `extrapath` from various `modutils` functions as it was not usedClaudiu Popa2020-03-111-8/+0
|
* Moved tests out of package directory (#704)Ashley Whetter2019-10-151-0/+336