summaryrefslogtreecommitdiff
path: root/tests/regrtest_data
Commit message (Collapse)AuthorAgeFilesLines
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-292-2/+2
|
* Support Implicit Namespace Packages (PEP 420) (#8153)Alexey Pelykh2023-02-093-0/+10
| | | Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* Add import-based submodule detection for preferred-modules (#8186)Dave Bunten2023-02-081-0/+3
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix no-name-in-module when variable is same as module name (#8169)Dani Alcala2023-02-074-0/+9
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add `--allow-reexport-from-package` option (#8124)Marc Mueller2023-01-282-0/+3
|
* Add test for existing preferred-modules functionality (#8093)Dave Bunten2023-01-241-0/+3
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add test for ModuleNotFoundError fixDaniel Harding2022-12-153-0/+32
| | | | Refs #7938
* add test and expl for line-too-long useless-supp FP (#7887)Dani Alcala2022-12-031-0/+2
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix a false negative for ``unused-import`` (#7621)Mark Byrne2022-10-292-0/+6
| | | | | | | When linting multiple modules & one module uses an import in a type annotation & the same import is unused in a subsequent module. Closes #4150 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix astroid-error for parsing module encoding (#7663)Dani Alcala2022-10-233-0/+3
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Raise ``syntax-error`` correctly on invalid encodings (#7553)Daniël van Noord2022-10-021-0/+1
|
* Remove Python 2 code from the tests & refactor (#7320)Mark Byrne2022-08-182-5/+4
| | | | | | | - Refactor Classes which inherit from `object`. - Remove `import print_function from __future__`. - Remove assignments to `__revision__` from the functional test module when it is never used throughout the module. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Respect ignore configuration options when --recursive=y. (#6528)Matus Valo2022-05-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ignore specified files/directories in recursive mode * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update Changelog * Fix typo in Changelog * Fix typo in comment * Add missing regrtest data directory * Improved unittests * Move common code of checking if file is ignored to separate function * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Rename is_ignored_file to _is_ignored_file Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update ChangeLog Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Use main instead of master as main checker name (#6569)Daniël van Noord2022-05-101-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix disabling of ``bad-option-value`` (#6556)Daniël van Noord2022-05-091-0/+100
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Revert "Do not append namespace packages to sys.path (#6405)" (#6548)Pierre Sassoulas2022-05-092-5/+0
| | | This reverts commit 603be8408a5d2d98283f41cfd9a94998fd7cfd3c.
* Do not report useless-suppression on duplicate-codeDaniël van Noord2022-05-053-0/+12
|
* Do not append namespace packages to sys.path (#6405)Daniël van Noord2022-05-022-0/+5
| | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix regression with ``ignore-imports`` (#6358)Daniël van Noord2022-04-163-0/+10
| | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Add ``unrecognized-option`` message (#6330)Daniël van Noord2022-04-151-3/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Replace .namespace with .config (#6316)Daniël van Noord2022-04-141-1/+1
|
* Use ``namespace`` for ``ignore`` and ``ignore_patterns``Daniël van Noord2022-04-111-1/+1
|
* Handle missing keys in option dictionariesDaniël van Noord2022-04-111-0/+2
|
* Optimize handling of long lines for checkers like 'missing-final-newline' ↵Sergey B Kirpichev2022-03-161-0/+1
| | | | | | | | | | | | | | (#5925) * Fix parsing of long lines when ``missing-final-newline`` is enabled * Adapt fa31b6b6 to be backward-compatible Fixes #5724 Also address comments from the PR PyCQA/pylint#5786 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add regression test for #5679 (#5725)Daniël van Noord2022-03-123-0/+151
|
* Allow disabling ``duplicate-code`` with a disable comment (#5446)Daniël van Noord2022-03-0435-0/+278
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Lint all files in a directory by expanding arguments (#5682)Matus Valo2022-02-066-0/+0
| | | | | | | * Added --recursive=y/n option and a mention in FAQ and user guide Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add a checker for misleading unicode (#5311)Kound2022-01-135-0/+15
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add typing and uniformize the checker registering in Pylinter (#5558)Pierre Sassoulas2021-12-271-1/+1
| | | | | Remove verbose docstring in code, keep them in example and doc Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Fixed extremely long processing of long lines with comma's (#5534)Daniël van Noord2021-12-171-0/+2
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix typo in pylintrc for useless-suppression (#5303)Daniël van Noord2021-11-231-1/+1
| | | | | | | | | | | * Fix typo in pylintrc for useless-suppression * Fix CI for information messages * Remove useless disables * Update CI and docs for 3.8+ Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix ``relative-beyond-top-level`` false positiveDaniël van Noord2021-10-1715-0/+27
|
* Fix loop in too-many-ancestors when an inheritance cycle is inferred (#5062)Andrew Haigh2021-09-242-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add typing with `PyAnnotate` to `./tests` (#4950)Daniël van Noord2021-09-041-1/+2
| | | | | | * Add mypy_extensions to requirement for ``NoReturn`` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove the python3 porting mode from the codebasePierre Sassoulas2021-09-014-33/+1
| | | | | | It's possible to use the python3 porting checker from an older pylint version. But it's not evolving anymore and was costing resource to maintain.
* Added unit tests and allow fail-under to apply even when the score is ↵Mark Bell2021-07-172-0/+23
| | | | exactly zero.
* test: fix fail_under regressionchohner2021-04-073-14/+10
|
* Fix testsMarc Mueller2021-02-281-0/+0
|
* Fix a crash in parallel mode when the module's filepath is not setClaudiu Popa2020-06-201-0/+0
| | | | Close #3564
* Chore: use https links (#3679)谭九鼎2020-06-111-2/+2
|
* Fix a bug with `ignore-docstrings` ignoring all lines in a moduleClaudiu Popa2020-06-082-0/+22
|
* Fix trailing whitespaces and trailing newlinesPierre Sassoulas2020-05-037-7/+6
|
* Improve the testing around the new --fail-under flagClaudiu Popa2019-11-212-0/+24
|
* Fixed an ``AttributeError`` caused by improper handling of ``dataclasses`` ↵Claudiu Popa2019-11-211-0/+13
| | | | | | inference in ``pyreverse`` Close #3256
* Removed Python 2 specific checksClaudiu Popa2019-09-171-1/+1
| | | | | Certain checks such as relative-import, invalid-encoded-data and missing-super-argument were removed as they no longer make sense on Python 3.
* Stopped installing tests with packageAshley Whetter2019-06-2046-0/+1352