summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add primer tests, (running pylint on external libs during tests)add-primer-testsPierre Sassoulas2021-11-249-5/+271
| | | | | | | In order to anticipate crash/fatal messages, false positives are harder to anticipate. Add '__tracebackhide__ = True' so the traceback is manageable
* Add changelog and warning about unstable API in testutilPierre Sassoulas2021-11-242-1/+11
|
* Fix a crash on psycopg2 for elif used (#5369)Pierre Sassoulas2021-11-245-41/+57
| | | | | | | | | | * Fix a crash in the ``check_elif`` extensions where an undetected if in a comprehension with an if statement within a f-string resulted in an out of range error. The checker no longer relies on counting if statements anymore and uses known if statements locations instead. It should not crash on badly parsed if statements anymore. specify the confidence of the message * Remove disable for else-if-used in pylint/checkers/classes.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Make parallel checker use ``MessageLocationTuple`` for ``Message`` (#5381)Daniël van Noord2021-11-241-2/+4
|
* Fix typo in pylintrc for useless-suppression (#5303)Daniël van Noord2021-11-2332-37/+31
| | | | | | | | | | | * 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>
* Consistency in functional tests for extension's namePierre Sassoulas2021-11-2331-1/+1
|
* Move the functional tests for extension in 'tests/functional/ext'Pierre Sassoulas2021-11-2372-3/+2
|
* Migrate test for extension to functional testsPierre Sassoulas2021-11-2343-673/+204
| | | | This permit to upgrade the fixtures in pre-commit.
* [pre-commit.ci] pre-commit autoupdate (#5377)pre-commit-ci[bot]2021-11-221-2/+2
| | | | | | | updates: - [github.com/asottile/pyupgrade: v2.29.0 → v2.29.1](https://github.com/asottile/pyupgrade/compare/v2.29.0...v2.29.1) - [github.com/psf/black: 21.10b0 → 21.11b1](https://github.com/psf/black/compare/21.10b0...21.11b1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add ``end_lineno`` and ``end_col_offset`` to ``MessageLocationTuple`` (#5343)Daniël van Noord2021-11-228-16/+79
|
* Add additional tests for ``OutputLine``Daniël van Noord2021-11-221-0/+17
|
* Bump actions/setup-python from 2.2.2 to 2.3.0 (#5367)dependabot[bot]2021-11-222-13/+13
| | | | | | | | | | | | | | | | Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2.2.2 to 2.3.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v2.2.2...v2.3.0) --- updated-dependencies: - dependency-name: actions/setup-python 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>
* Update documentation on writing tests for ``pylint`` (#5366)Daniël van Noord2021-11-223-74/+141
| | | | * Update documentation on writing tests for ``pylint``
* Bump black from 21.10b0 to 21.11b1 (#5368)dependabot[bot]2021-11-221-1/+1
| | | | | | | | | | | | | | | | Bumps [black](https://github.com/psf/black) from 21.10b0 to 21.11b1. - [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>
* [refactor] Permit to get the expected exit code in configuration test frameworkPierre Sassoulas2021-11-2214-18/+78
|
* Prevent crash when parsing the toml to also crash pylintPierre Sassoulas2021-11-226-1/+21
| | | | Refer to #3181
* [doc] Add basic documentation for toml configuration filesPierre Sassoulas2021-11-221-0/+3
|
* Add regression test (#5339)Daniël van Noord2021-11-211-0/+18
|
* Add tests `inherit-non-class` with subscriptable class (#5354)Marc Mueller2021-11-213-0/+27
| | | * Add tests inherit-non-class with subscriptable class
* Upgrade astroid to 2.9.0 (#5355)Marc Mueller2021-11-216-14/+18
| | | | * Upgrade astroid to 2.9.0 * Fix slice index col_offset
* Add accetpance tests in CI for python 3.8+ instead of launching manually at ↵Pierre Sassoulas2021-11-215-60/+101
| | | | | | | | | release (#5353) * [test] Add acceptance tests in the continuous integration * Disable duplicate-code from the acceptance tests * Rename acceptance to primer stdlib for clarity
* Revert "Update functional test updater to print actual string (#5351)" (#5352)Daniël van Noord2021-11-212-9/+3
| | | This reverts commit 825dce1be9521a6a2f8b0e1e501d0d258ebb66bb.
* Update functional test updater to print actual string (#5351)Daniël van Noord2021-11-212-3/+9
|
* Fix crash on ``open()`` calls for non-string ``mode`` arguments (#5332)Daniël van Noord2021-11-205-18/+93
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Update documentation for command-line output options and custom reporters ↵Arianna Y2021-11-191-8/+39
| | | | | | | | | | | (#5335) * Update documentation for command-line output options and custom reporters * Make minor revisions to output documentation and new reporter example * Improve output documentation spelling Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Use isort's black profile (#5330)Kound2021-11-181-3/+1
|
* Add error codes to all ``type: ignore`` (#5329)Daniël van Noord2021-11-1718-29/+30
|
* Add casts to ``linter.reporter`` in testsDaniël van Noord2021-11-161-1/+10
|
* Add ``enable-all-extensions`` option (#5315)Daniël van Noord2021-11-154-1/+53
| | | * Add ``enable-all-extensions`` option
* [pre-commit.ci] pre-commit autoupdate (#5314)pre-commit-ci[bot]2021-11-151-1/+1
| | | | | | updates: - [github.com/PyCQA/isort: 5.10.0 → 5.10.1](https://github.com/PyCQA/isort/compare/5.10.0...5.10.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Bump isort from 5.10.0 to 5.10.1 (#5308)dependabot[bot]2021-11-151-1/+1
| | | | | | | | | | | | | | | | | Bumps [isort](https://github.com/pycqa/isort) from 5.10.0 to 5.10.1. - [Release notes](https://github.com/pycqa/isort/releases) - [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md) - [Commits](https://github.com/pycqa/isort/compare/5.10.0...5.10.1) --- updated-dependencies: - dependency-name: isort dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update tbump requirement from ~=6.5.0 to ~=6.6.0 (#5307)dependabot[bot]2021-11-151-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.5.0...v6.6.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 sphinx from 4.2.0 to 4.3.0 (#5309)dependabot[bot]2021-11-151-1/+1
| | | | | | | | | | | | | | | | | Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.2.0 to 4.3.0. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.2.0...v4.3.0) --- updated-dependencies: - dependency-name: sphinx 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>
* Fix crash for ``protected-access`` on (outer)-class traversal (#5305)Daniël van Noord2021-11-155-1/+25
| | | | | * Fix crash for ``protected-access`` on (outer)-class traversal Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move ``misplaced-comparison-constant`` to optional extension (#5298)Daniël van Noord2021-11-1419-44/+112
| | | | | | | * Move ``misplaced-comparison-constant`` to optional extension * Update functional tests to increase coverage Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix user specific path in functional conf tests for tox (#5301)Pierre Sassoulas2021-11-142-4/+8
| | | Detected in https://github.com/PyCQA/pylint/pull/5287#issuecomment-968093640
* Remove redundant brackets (#5300)Marc Mueller2021-11-131-1/+1
|
* Add a whatsnew entry for python <3.6.2 incompatibility (#5297)Pierre Sassoulas2021-11-131-0/+9
| | | Relates to #5250, #5171
* Clarify syntax in pylint.lint example (#5260)Felix von Drigalski2021-11-132-2/+4
| | | | | * Clarify syntax in pylint.lint example This makes the call non-trivial and demonstrates the syntax more fully.
* Pylint fix for invalid TOML config (#4720)Tanvi Moharir2021-11-1317-5/+94
| | | | | | | | | | | | * Fix crashes during toml configuration parsing Add test for current 'pyproject.toml' issues. Add a 'bad-configuration-section' message for bad toml configuration We can detect bad top level option when reading the toml but we do not catch all the problem in toml because we don't know what is expected so we can't recommend. See #5259 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix ``accept-no-yields/return-doc`` for partially correct docstringsDaniël van Noord2021-11-136-4/+44
|
* Make y/n validator case insensitive (#5294)Tushar Sadhwani2021-11-123-0/+6
| | | | * Make y/n validator case insensitive * Add changelog entry
* Create a framework of functional tests for configuration files (#5287)Pierre Sassoulas2021-11-1222-101/+307
| | | | | | | | | | * Migrate old unittest to the new framework for testing. * Add a regression test for #4746 : This permits to introduce an example of configuration file with an error. * Proper import for pytest import of CaptureFixture Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add tests for crash on assignment expressions in if statemenpyttsDaniël van Noord2021-11-123-0/+25
|
* Add tests for crash on inference of ``__len__``Daniël van Noord2021-11-121-0/+12
|
* Bump ``astroid`` version to ``2.8.5``Daniël van Noord2021-11-122-2/+2
|
* Add documentation on adding ``pylint`` to ``pre-commit`` (#5292)Daniël van Noord2021-11-123-0/+48
|
* Update coverage requirement from ~=5.5 to ~=6.1.2 (#5239)dependabot[bot]2021-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | * Update coverage requirement from ~=5.5 to ~=6.1.2 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.1.1) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Use a stable file in order to have a stable exit codePierre Sassoulas2021-11-102-1/+7
|
* Refactor 'check_configuration_file_reader' so we can assert other filesPierre Sassoulas2021-11-101-18/+30
| | | | Necessary prior to #4720