| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
keyword-only arguments (#8674)
Closes #8667
|
|
|
|
| |
functions. (#8537)
|
|
|
|
| |
assignment. (#8541)
|
| |
|
| |
|
| |
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
except statement if exception are in different namespace (#8052)
Closes #8051
|
|
|
|
| |
tests
|
|
|
|
|
| |
inferred (#7627)
Add a keyword-only `compare_constants` argument to `safe_infer`.
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
| |
- 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>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
| |
Co-authored-by: Sam M W <smw@alertergroup.co.uk>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Also change message type for inner loops overwriting the outer loop variable from `redefined-outer-name` to `redefined-loop-name`
* Update redefined-outer-name description
* Add coverage and fix preexisting false positive
When the check for inner loops redefining outer loop variables was redefined-outer-name, it assumed enclosing for-loops were in the same namespace.
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add ``--minimal-messages-config`` option for functional tests
* Add test file option to exclude from --minimal-messages-config run.
* Fix ``too-many-branches`` false negative
* Fix ``access-member-before-definition`` false negative
* Fix ``consider-using-min-builtin`` and ``consider-using-max-builtin`` false negatives
* Fix ``consider-using-with`` false negative
* Exclude ``deprecated-module`` tests from ``--minimal-messages-config`` run.
Have to find out how the list of deprecated modules is built first.
* Update doc/whatsnew/2.14.rst
* Ignore deprecated module false negatives
* Fix ``deprecated-typing-alias`` false negative
* Skip tests for ``fixme`` message, don't know yet how enable/disable affects TokenChecker/RawChecker
* Exclude functional test for various logging checks, as the output string depends on what messages are enabled.
* Fix false negative for ``nan-comparison``
* Fix false negative for ``non-ascii-module-import``
* Fix false negative for ``non-ascii-file-name``
* Skip tests for logging messages
* Fix false negative for ``undefined-variable`` in ``metaclass`` argument
* Exclude test for ``catching-non-exception``. ``exc._all_bases_known`` is ``False`` when enabling just this message.
* Exclude ``ungrouped_imports_suppression``. ``useless-suppression`` is triggered too often in this case.
* Fix false negative for ``use-a-generator``
* Exclude functional tests for ``useless-suppression`` from ``--minimal-messages-config``
* Exclude another deprecation check from ``--minimal-messages-config`` run
* Update tests/testutils/data/m/minimal_messages_config.py
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
| |
* TypeVar name mismatch check
* Fix double hashes in changelogs
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
| |
|
|
|
| |
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
|
| |
|
|
|
|
| |
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Yudaka <dakala@tuta.io>
|
|
|
| |
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
|
| |
number of arguments differ (#5409)
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
| |
Closes #5460
|
|
|
|
| |
Better typing for test options and fix existing issue
|
|
|
|
|
|
| |
* Add ``confidence`` to all expected functional test outputs
* Make OutputLine accept end_line and end_column
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
| |
False (#5227)
* Fix incorrect ``consider-using-ternary`` when condition is inferrable as False
* Properly infer the condition in old ternary statements and suggest ``simplify-boolean-expression`` over ``consider-using-ternary`` if it is False
|
|
|
|
|
|
|
|
|
| |
Allow excluding classes based on their ancestors from the ``too-few-public-methods`` checker.
Closes #3370
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
|
| |
We're only supporting python version > 3.6 so this became
useless configuration.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add ``consider-using-f-string`` checker
This adds a checker for normal strings which are formatted
with ``.format()`` or '%'.
The message is a convention to nudge users towards using f-strings.
This closes #3592
* Update pylint code to use f-strings
After adding `consider-using-f-strings` the codebase showed numerous
cases of formatting which could be f-strings.
This commit changes most of these to become f-strings, or adds ignores.
* Apply suggestions from code review
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Add ignored-parents option to design checker
This allows users to specify classes to ignore while counting parent
classes.
Partially closes #3057
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>
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Changes the output messages of arguments-differ based on different error cases.
It is part one of the issue #3536
|
| |
|
| |
|
|
|
|
| |
* Add test case for typing.Generic with ABCMeta
|