summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update coverage requirement from ~=5.5 to ~=6.0dependabot/pip/coverage-approx-eq-6.0dependabot[bot]2021-10-041-1/+1
| | | | | | | | | | | | | | Updates the requirements on [coverage](https://github.com/nedbat/coveragepy) to permit the latest version. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/coverage-5.5...6.0) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
* Update pytest-cov requirement from ~=2.12 to ~=3.0 (#5114)dependabot[bot]2021-10-041-1/+1
| | | | | | | | | | | | | | | | Updates the requirements on [pytest-cov](https://github.com/pytest-dev/pytest-cov) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest-cov/releases) - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-cov/compare/v2.12.0...v3.0.0) --- updated-dependencies: - dependency-name: pytest-cov dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Improve and flatten ``unused-wildcard-import`` message (#5110)Daniël van Noord2021-10-045-6/+34
| | | | | | | | | * Improve and flatten ``unused-wildcard-import`` message Instead of reporting all unused imports, the checker now emits one single message for all unused imports with a stylized string containing all imports. This closes #3859 * Add tests for string formation
* Add basic typing to ``pylint/message``Daniël van Noord2021-10-023-14/+26
|
* Merge pull request #5102 from DanielNoord/typing-pyreverseAndreas Finkler2021-10-023-6/+6
|\ | | | | Add basic typing to ``pylint/pyreverse``
| * Add basic typing to ``pylint/pyreverse``Daniël van Noord2021-10-023-6/+6
| |
* | Add basic typing to ``pylint/testutils/pyreverse``Daniël van Noord2021-10-021-2/+2
|/
* Move ``merge_stats`` to ``checkerstats.py``Daniël van Noord2021-10-013-25/+36
|
* Fix empty regex options not converting to regexDaniël van Noord2021-09-293-5/+7
|
* Add missing setting to ``pylintrc``Daniël van Noord2021-09-291-1/+5
|
* Make test decorator use ``checker.set_option()``Daniël van Noord2021-09-292-2/+41
| | | | | | This makes unittests with options mimick the normal option setting behaviour. It also adds ``set_config_directly()`` for those cases where this is not possible.
* Fix false-positive ``useless-suppression`` for ``line-too-long`` (#5077)Daniël van Noord2021-09-284-9/+22
| | | | | | | Also changes ``add_ignored_message()`` to make ``nodes`` parameter optional. Closes #4212 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix ``invalid-name`` for overwritten base ``object`` methods (#5079)Daniël van Noord2021-09-284-7/+22
|
* [pre-commit.ci] pre-commit autoupdate (#5082)pre-commit-ci[bot]2021-09-2821-31/+26
| | | | | | | | | | | * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks 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>
* Update pytest-xdist requirement from ~=2.3 to ~=2.4 (#5078)dependabot[bot]2021-09-271-1/+1
| | | | | | | | | | | | | | | | Updates the requirements on [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest-xdist/releases) - [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v2.3.0...v2.4.0) --- updated-dependencies: - dependency-name: pytest-xdist dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Remove ``pytest`` marks in test_regr (#5076)Daniël van Noord2021-09-271-2/+0
|
* Add ``no-implicit-optional`` flag to ``mypy`` (#5075)Daniël van Noord2021-09-268-9/+13
|
* Small py-version improvements (#5069)Marc Mueller2021-09-254-4/+6
| | | | | | | | | * Add py-version requirement to checker docs * Improve default value * Improve option parser error message * Fix py-version help text
* Add small bits of typing annotation (#4954)Daniël van Noord2021-09-253-8/+12
|
* Fix loop in too-many-ancestors when an inheritance cycle is inferred (#5062)Andrew Haigh2021-09-244-6/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Refactor and typing of OutputLine (#5060)Daniël van Noord2021-09-242-37/+55
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Update toml dependency to >=0.9.2 (#5067)Jeroen Seegers2021-09-234-2/+9
| | | | * Update toml dependency from >=0.7.1 to >=0.9.2
* Fix ``useless-suppression`` for ``wrong-import-order`` (#5063)Daniël van Noord2021-09-234-6/+56
| | | | | | This also adds a new method to ``MessagesHandlerMixIn`` which adds messages to the list of the ignored messages without doing anything else. This can be used to avoid ``useless-suppression`` false positives. This closes #2366
* Refactor of ``FileState.handle_ignored_message()`` (#5064)Daniël van Noord2021-09-232-14/+2
| | | Remove unnecessary parameters
* Type `add_message` and add `MessageLocationTuple` (#5050)Daniël van Noord2021-09-217-51/+131
| | | | | | * Type `add_message` and add `MessageLocationTuple` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Fix false-positive undefined-variable with Lambda, IfExp, and := (#5044)Marc Mueller2021-09-213-3/+15
|
* Make ``consider-using-f-string`` skip `format()` with backslash (#5055)Daniël van Noord2021-09-214-25/+45
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add typing and refactor text reporter (#5041)Daniël van Noord2021-09-212-66/+142
|
* [pre-commit.ci] pre-commit autoupdate (#5056)pre-commit-ci[bot]2021-09-201-2/+2
| | | | | | | updates: - [github.com/psf/black: 21.8b0 → 21.9b0](https://github.com/psf/black/compare/21.8b0...21.9b0) - [github.com/pre-commit/mirrors-prettier: v2.4.0 → v2.4.1](https://github.com/pre-commit/mirrors-prettier/compare/v2.4.0...v2.4.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix bug with cell-var-from-loop and kw_defaults (#5045)David Liu2021-09-204-17/+43
| | | | | | | * Fix bug with cell-var-from-loop and kw_defaults * Use more efficient generator for defaults and add issue link * Fix test output for cellvar_escaping_loop Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Rename ``pylint.testutils.TestMessage`` to ``MessageTest`` (#5051)Daniël van Noord2021-09-2022-328/+330
|
* Update tbump requirement from ~=6.3.2 to ~=6.4.0 (#5053)dependabot[bot]2021-09-201-1/+1
| | | | | | | | | | | | | | | | Updates the requirements on [tbump](https://github.com/dmerejkowsky/tbump) to permit the latest version. - [Release notes](https://github.com/dmerejkowsky/tbump/releases) - [Changelog](https://github.com/dmerejkowsky/tbump/blob/main/Changelog.rst) - [Commits](https://github.com/dmerejkowsky/tbump/compare/v6.3.2...v6.4.0) --- updated-dependencies: - dependency-name: tbump dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump types-toml from 0.1.5 to 0.10.0 (#5054)dependabot[bot]2021-09-201-1/+1
| | | | | | | | | | | | | | | | Bumps [types-toml](https://github.com/python/typeshed) from 0.1.5 to 0.10.0. - [Release notes](https://github.com/python/typeshed/releases) - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-toml dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump black from 21.8b0 to 21.9b0 (#5052)dependabot[bot]2021-09-201-1/+1
| | | | | | | | | | | | | | | | Bumps [black](https://github.com/psf/black) from 21.8b0 to 21.9b0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/commits) --- updated-dependencies: - dependency-name: black dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add typing to `FileState` (#5049)Daniël van Noord2021-09-201-15/+64
|
* Remove `safe_decode()` and `deprecated_option()` from utils (#5046)Daniël van Noord2021-09-202-32/+0
|
* Use node_ancestors to get rid of some while-loops (#5005)Nick Drozd2021-09-184-28/+16
| | | | | * Use node_ancestors method * Rename loop variables
* Rename `pylint.testutil.Message` to `pylint.testutil.TestMessage` (#5043)Daniël van Noord2021-09-1822-326/+442
| | | * Rename `Message` to `TestMessage``
* Require Python 3.6 for consider f-string check (#5024)Marc Mueller2021-09-174-8/+35
| | | | | | | * Require Python 3.6 for consider f-string check Co-authored-by: Ville Skyttä <ville.skytta@iki.fi> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add typing to `BaseReporter.out` (#5023)Daniël van Noord2021-09-172-16/+19
| | | | | | * Add typing to `BaseReporter.out` * Add DeprecationWarning to `set_output` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add typing to `lint_module_test`Daniël van Noord2021-09-171-27/+42
|
* Add ``flynt`` to 2.11 changelogDaniël van Noord2021-09-171-1/+2
|
* Fix ``unspecified-encoding`` for ``Path.read_text()``Daniël van Noord2021-09-174-6/+18
| | | | Closes #5029
* Fix typing of `ReportsHandlerMixIn` (#5028)Daniël van Noord2021-09-171-7/+5
| | | | * Fix typing of `ReportsHandlerMixIn`
* py-version-check help fixesVille Skyttä2021-09-171-1/+1
|
* Spelling and grammar fixesVille Skyttä2021-09-1745-61/+61
|
* Move back to a dev version following 2.11.1 releasePierre Sassoulas2021-09-162-2/+2
|
* Bump pylint to 2.11.1, update changelogv2.11.1Pierre Sassoulas2021-09-163-3/+9
|
* Add typing for ``json_reporter`` and sub-classesDaniël van Noord2021-09-1611-33/+76
|
* Fix ``unspecified-encoding`` for `Path()`Daniël van Noord2021-09-164-3/+25
| | | | This closes #5017