summaryrefslogtreecommitdiff
path: root/tests/test_regr.py
Commit message (Collapse)AuthorAgeFilesLines
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* [test] Removes 'test_pylint_config_attr' (#8468)Pierre Sassoulas2023-03-201-23/+0
| | | See fc0ed97, it's not relevant anymore.
* Add typing to ``test_regr``Daniël van Noord2022-09-031-5/+5
|
* Disable fixme for internal uses before we make it optional in #3512 (#6482)Pierre Sassoulas2022-05-011-1/+0
|
* [spelling] Remove remaining typoes detected by the spelling checkerPierre Sassoulas2022-04-261-1/+1
|
* Several ``argparse`` related refactors (#6337)Daniël van Noord2022-04-151-1/+2
| | | | | * Update TODOs * Deprecate ``option_groups``
* Use ``python-typing-update`` on half of the ``tests`` directory (#6317)Daniël van Noord2022-04-141-4/+8
|
* Set ``Namespace`` on ``config`` instead of ``namespace``Daniël van Noord2022-04-141-0/+3
|
* Deprecate ``BaseChecker.config`` (#6278)Daniël van Noord2022-04-121-3/+3
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove ``OptionsProviderMixIn`` from ``BaseChecker``Daniël van Noord2022-04-111-2/+1
|
* Copy all ``OptionsProvideMixIn`` methods to ``ArgumentsProvider`` (#6257)Daniël van Noord2022-04-111-1/+1
|
* Copy all of ``OptionsManagerMixIn`` methods into ``_ArgumentsManager`` (#6214)Daniël van Noord2022-04-071-1/+0
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Create ``_ArgumentsProvider``Daniël van Noord2022-04-061-0/+1
|
* Change parent class order of ``PyLinter``Daniël van Noord2022-04-051-2/+2
|
* Create an `Argument` class and allow convertion of optdict into them (#5584)Daniël van Noord2022-03-291-0/+1
| | | | | * Use config initialization of ``_ArgumentsManager`` * Allow ``BaseChecker`` to register on a ``_ArgumentsManager`` * Use the ``argparse`` config handler in ``logging.py`` and add tests
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-1/+1
| | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc
* Simplify hard to maintain copyright noticePierre Sassoulas2022-03-241-16/+1
| | | | | | 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.
* Use pytest-timeout for testsSergey B Kirpichev2022-03-181-26/+4
|
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-1/+1
|
* Fix typos accross the whole codebase (#5575)Pierre Sassoulas2021-12-211-2/+2
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Bump pylint to 2.12.0, update changelogv2.12.0Pierre Sassoulas2021-11-251-0/+1
| | | | Closes #5250
* Add casts to ``linter.reporter`` in testsDaniël van Noord2021-11-161-1/+10
|
* Fix deprecation 'check function will only accept sequence of string' (#5218)Pierre Sassoulas2021-10-271-14/+18
| | | | | * Fix deprecation 'check function will only accept sequence of string' * Add a test for Pylinter.check() deprecation
* Merge ``MessagesHandlerMixIn`` into ``PyLinter`` (#5136)Daniël van Noord2021-10-171-1/+0
| | | * Merge ``MessagesHandlerMixIn`` into ``PyLinter``
* Refactor ``LinterStats`` (#5074)Daniël van Noord2021-10-071-3/+3
| | | | | | | | * Refactor ``self.stats`` on linter and checker This adds a new class ``LinterStats`` which is used to store all kinds of stats during a run of ``pylint``. Tests have been changed slightly to be able to use the new class. Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Remove ``pytest`` marks in test_regr (#5076)Daniël van Noord2021-09-271-2/+0
|
* Fix loop in too-many-ancestors when an inheritance cycle is inferred (#5062)Andrew Haigh2021-09-241-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add regression test for #4972 hang * Fix loop in too-many-ancestors when an inheritance cycle is inferred Ref #4972. If a class could be inferred as an ancestor of itself then the implementation of _get_parents could get caught in an infinite loop, forever adding itself to to_explore. This could be possible by monkeypatching an ancestor after class definition like in the following simplified example: class Fake(module.Cls): pass module.Cls = Fake Reproducing this is fairly tricky, but this integration test shows the behaviour as of 1e675abcc2aa931421d7ce300908e734a93fd790: #!/bin/sh HERE=$(readlink -f .) VENV=$HERE/venv-repro PIP=$VENV/bin/pip python -m venv "$VENV" PYLINT=$VENV/bin/pylint # assume running in pylint dir $PIP install -e . $PIP install flask mkdir -p repro/flask/ touch repro/__init__.py cat > repro/flask/__init__.py <<'EOF' import flask import repro.flask # self-import necessary class Fake(flask.Flask): pass flask.Flask = Fake EOF echo +++ this is fine $PYLINT --rcfile=/dev/null -- repro/flask/ echo +++ finished echo +++ this loops forever cd repro/; $PYLINT --rcfile=/dev/null -- flask/ echo +++ should not reach here
* Bump pylint to 2.11.0, update changelogv2.11.0Pierre Sassoulas2021-09-161-0/+1
|
* Add typing to ``filepath`` (#4980)Daniël van Noord2021-09-161-18/+16
| | | | | | | | | | * Change tests for ``filepath`` changes * Add pylint/typing.py and FileItem NamedTuple * Use NamedTuple more efficiently * Fix errors and tests after adding warning * Add deprecation for future API change in Checker Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add typing to all calls to ``self.stats`` (#4973)Daniël van Noord2021-09-151-3/+5
| | | | | | | | | | | | | | | * Add typing to all calls to ``self.stats`` All checkers inherit from a baseclass which has a ``stats`` attribute. This attribute has a fairly unmanageable type, but the current typing includes all variations of the attribute. Other changes not directly related to ``self.stats`` are due to ``mypy``warnings. This incorporate the feedback received in #4954 * Add ``CheckerStatistic`` class to ``pylint/typing`` * Guard `typing.Counter` import Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add typing with `PyAnnotate` to `./tests` (#4950)Daniël van Noord2021-09-041-5/+7
| | | | | | * Add mypy_extensions to requirement for ``NoReturn`` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump pylint to 2.9.3, update changelogv2.9.3Pierre Sassoulas2021-07-011-0/+1
|
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Update link to astroid bump_changelog
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Apply copyrite --contribution-thresholdPierre Sassoulas2021-02-211-1/+2
|
* Remove unused and bugged pypy_version_infoPierre Sassoulas2021-02-071-5/+0
|
* Fix PytestCollectionWarning: cannot collect test class TestReporterPierre Sassoulas2020-11-281-1/+1
|
* Sets up copyrighthippo912020-08-201-1/+2
|
* Switch to isort 5 for pylint's own codeDamien Baty2020-08-181-1/+1
|
* Disable redefined-outer-name necessary by design with pytestPierre Sassoulas2020-05-011-0/+1
|
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+3
|
* [lint package refactor] Create a file for pylinterPierre Sassoulas2020-04-261-1/+1
|
* [tests lint] Fix all W0613 unused-argument in pylint's own testsPierre Sassoulas2020-04-201-2/+2
|
* Stopped installing tests with packageAshley Whetter2019-06-201-0/+137