Add ability to add end_line and end_column to the --msg-template option.
With the standard TextReporter this will add the line and column number of the
end of a node to the output of Pylint. If these numbers are unknown, they are represented
by an empty string.
Introduced primer tests and a configuration tests framework. The helper classes available in
pylint/testutil/ are still unstable and might be modified in the near future.
Fix install graphiz message which isn't needed for puml output format.
MessageTest of the unittest testutil now requires the confidence attribute
to match the expected value. If none is provided it is set to UNDEFINED.
add_message of the unittest testutil now actually handles the col_offset parameter
and allows it to be checked against actual output in a test.
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.
Fix simplify-boolean-expression when condition can be inferred as False.
Fix exception when pyreverse parses property function of a class.
The functional testutils now accept end_lineno and end_column. Expected
output files without these will trigger a DeprecationWarning. Expected output files
can be easily updated with the python tests/test_functional.py --update-functional-output command.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps pylint from 2.10.2 to 2.12.1.
Changelog
Sourced from pylint's changelog.
... (truncated)
Commits
2c15137
Bump pylint to 2.12.1, update changeloga9c1017
Require Python 3.6.2 (#5068)1f7f2e9
Addflake8-typing-import
to the pre-commit configuration (#5070)e4a1935
Activate and fix existing use-set-for-membership checks (#5379)07a635c
Upgrade the version to 2.12.1-dev0 following 2.12.0 releasef6d3d39
Bump pylint to 2.12.0, update changelogf84c069
Add Copyrite configuration for Nick Pesceaa048f7
Add documentation for primer and convert to command line option (#5387)fa7a84f
Addmin_pyver_end_position
option (#5386)be149db
Update functional test expected output (#5349)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)