Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add optional `prefer-typing-namedtuple` message (#8681)HEADmain | Jacob Walls | 2023-05-16 | 3 | -0/+14 |
| | | | Closes #8660 | ||||
* | Add new checker `kwarg-superseded-by-positional-arg` and fix a false ↵ | Mark Byrne | 2023-05-16 | 8 | -20/+87 |
| | | | | | | | | | | positive (#8644) * Fix a false positive for ``redundant-keyword-arg`` when a function, with a keyword-only-parameter and ``**kwargs``, is called with a positional argument and a keyword argument where the keyword argument has the same name as the positional-only-parameter. * Add new checker ``kwarg-superseded-by-positional-arg`` which emits a warning message for the above scenario. Closes #8558 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix a false negative for ``too-many-arguments`` and positional-only and ↵ | Mark Byrne | 2023-05-15 | 3 | -1/+7 |
| | | | | | | | | keyword-only arguments (#8674) Closes #8667 | ||||
* | Regression fix for `unused-variable` false negative (#8684) | Zen Lee | 2023-05-15 | 2 | -0/+18 |
| | |||||
* | Fix crash when deleting from a dict returned from a call (#8678) | Jacob Walls | 2023-05-12 | 2 | -0/+8 |
| | |||||
* | [use-implicit-booleaness] Reinstate tests that are expected to fail | Pierre Sassoulas | 2023-05-03 | 1 | -10/+10 |
| | |||||
* | Add applicability notes for `compare-to-empty-string/zero` (#8592) | Jason Lau | 2023-05-03 | 3 | -44/+44 |
| | | | | | | The extension `compare-to-empty-string` is only applicable when the expression being compared is strictly a `str`. The extension `compare-to-zero` is only applicable when the expression being compared is strictly an `int`. | ||||
* | Switch from ' to " in use-implicit-booleaness-not-comparison | Pierre Sassoulas | 2023-05-03 | 1 | -32/+32 |
| | | | | | Because empty string needs to " because node.as_string() use simple quote. | ||||
* | Merge the empty-string extensions to 'implicit_booleaness_checker' | Pierre Sassoulas | 2023-05-02 | 6 | -30/+30 |
| | |||||
* | Merge the compare-to-zero extensions to 'implicit_booleaness_checker' | Pierre Sassoulas | 2023-05-02 | 6 | -54/+54 |
| | |||||
* | Fix false negative for calling module-level function before definition (#8494) | Jacob Walls | 2023-04-29 | 3 | -10/+23 |
| | |||||
* | Drop support for Python 3.7 (#8609) | Marc Mueller | 2023-04-24 | 9 | -18/+12 |
| | | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests | ||||
* | Fix a false positive for ``bad-dunder-name`` when there is a user-defined ↵ | Mark Byrne | 2023-04-24 | 1 | -0/+3 |
| | | | | | ``__index__`` method. (#8619) Closes #8613 | ||||
* | Update pytest requirement from ~=7.2 to ~=7.3 (#8562) | dependabot[bot] | 2023-04-23 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | * Update pytest requirement from ~=7.2 to ~=7.3 Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/7.2.0...7.3.0) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production ... * Disable import-error as attrs is no longer a test dependency --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | ||||
* | Modified all occurences of "a f-string" to "an f-string" | Elazrod56 | 2023-04-20 | 3 | -32/+32 |
| | |||||
* | Modified comment on line 147 to improve spelling | Elazrod56 | 2023-04-20 | 1 | -1/+1 |
| | |||||
* | Fix FP `used-before-assignment` for statements guarded under same test (#8581) | Jacob Walls | 2023-04-16 | 2 | -1/+50 |
| | |||||
* | Improve output of `consider-using-generator` message for `min()` calls with ↵ | Jacob Walls | 2023-04-16 | 2 | -0/+6 |
| | | | | `default` keyword (#8582) | ||||
* | Fix `used-before-assignment` TYPE_CHECKING false negatives (#8431) | Zen Lee | 2023-04-15 | 2 | -0/+20 |
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | ||||
* | Fix false negative for no-value-for-parameter: positional-only args and ↵ | Mark Byrne | 2023-04-14 | 3 | -0/+18 |
| | | | | **kwargs (#8575) | ||||
* | Fix false positive for ``keyword-arg-before-vararg`` (#8571) | Mark Byrne | 2023-04-13 | 3 | -0/+18 |
| | | | | | * Fix false positive for ``keyword-arg-before-vararg`` when a positional-only parameter with a default value precedes ``*args``. Closes #8570 | ||||
* | Fix `unused-import` to check`dummy-variables-rgx` (#8566) | RSTdefg | 2023-04-12 | 1 | -0/+5 |
| | | | | | Resolve #8500 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix false positive for ``positional-only-arguments-expected`` when a ↵ | Mark Byrne | 2023-04-09 | 1 | -0/+18 |
| | | | | function contains both a positional-only parameter that has a default value, and ``**kwargs``. (#8556) | ||||
* | Also check the typealias naming style for TypeAlias variables defined in ↵ | Yilei "Dolee" Yang | 2023-04-07 | 2 | -0/+12 |
| | | | | functions. (#8537) | ||||
* | Fix isinstance-second-argument-not-valid-type for union types with None | Rogdham | 2023-04-07 | 2 | -4/+8 |
| | |||||
* | Fix typelias `invalid-name` false positives for Union variables without ↵ | Yilei "Dolee" Yang | 2023-04-07 | 2 | -3/+6 |
| | | | | assignment. (#8541) | ||||
* | Do not emit `logging-not-lazy` for explicitly concatenated strings. (#8546) | Yilei "Dolee" Yang | 2023-04-07 | 2 | -7/+12 |
| | |||||
* | Fix check unused arguments false positive bug (#8542) | Théo Battrel | 2023-04-06 | 2 | -0/+23 |
| | | | | | | | | | | | | | | | | | | | Problem: the special method `__new__` must match the arguments of the `__init__` method even if `__new__` method does not use them. This generate `unused-argument` for the `__new__` method. Fix: the unused arguments check should not be done on the `__new__` method if the `__init__` method is defined in the same class. Update `unused-argument` test to include a check for the case of `__init__` and `__new__` being defined in a class but `__new__` does not use all of the argument. This is fine because `__new__` must have the same argument of `__init__`. Update with a second check in case of `__init__` being not defined in a class. Then the unused arguments check must be done on `__new__`. Fixes https://github.com/pylint-dev/pylint/issues/3670 | ||||
* | Handle patterns in ignored-modules when checking for no-name-in-module (#7579) | Daniel Mouritzen | 2023-04-03 | 3 | -2/+8 |
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jared Proffitt <jaredproffitt@gmail.com> | ||||
* | Add regression test for #7506 (#8432) | Jacob Walls | 2023-04-03 | 2 | -8/+11 |
| | |||||
* | [cleanup] Upgrade more doc following the PyCQA migration | Pierre Sassoulas | 2023-03-31 | 10 | -11/+11 |
| | |||||
* | Fix `used-before-assignment` false positive for `TYPE_CHECKING` elif branch ↵ | Zen Lee | 2023-03-30 | 5 | -7/+22 |
| | | | | | | imports (#8441) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [PyCQA migration] Upgrade links to the repositories in code and doc (#8514) | Pierre Sassoulas | 2023-03-29 | 175 | -272/+272 |
| | |||||
* | Allow integers in TypeAlias names (#8488) | Stephane Odul | 2023-03-28 | 2 | -10/+14 |
| | |||||
* | Fix `unnecessary-lambda` false positive for lambdas using its parameters in ↵ | cherryblossom | 2023-03-28 | 2 | -0/+13 |
| | | | | | | | their body (#8498) Fixes #8496 | ||||
* | [testutil] Fix the algorithm for functional test discovery | Pierre Sassoulas | 2023-03-28 | 1 | -0/+0 |
| | |||||
* | Don't consider ``Union`` to always be a type alias (#8489) | Daniël van Noord | 2023-03-23 | 1 | -0/+4 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [cleanup] Move tests starting with 'unbalanced' in a subdir | Pierre Sassoulas | 2023-03-23 | 5 | -0/+0 |
| | |||||
* | [cleanup] Move tests starting with 'invalid_all' in a subdir | Pierre Sassoulas | 2023-03-23 | 10 | -0/+0 |
| | |||||
* | [cleanup] Move tests starting with 'postponed' in a subdir | Pierre Sassoulas | 2023-03-23 | 16 | -0/+0 |
| | |||||
* | [cleanup] Move tests starting with 'singledispatch' in a subdir | Pierre Sassoulas | 2023-03-23 | 12 | -0/+0 |
| | |||||
* | Add Python 3.8+ `asyncSetUp` to "defining-attr-methods" list (#8403) | Samuel FORESTIER | 2023-03-11 | 2 | -0/+14 |
| | |||||
* | Add regression test for #5288 (#8385) | Jacob Walls | 2023-03-07 | 2 | -0/+13 |
| | |||||
* | Accept values of the form ``<class name>.<attribute name>`` for the ↵ | Mark Byrne | 2023-03-03 | 3 | -5/+16 |
| | | | | | | | | `exclude-protected` list (#8364) Closes #7343 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Prevent emitting ``invalid-name`` on 'global' redefinition (#8337) | Mark Byrne | 2023-02-27 | 4 | -2/+11 |
| | | | | | Closes #8307 | ||||
* | Add ``invalid-name`` check for ``TypeAlias`` names (#7116) | Daniël van Noord | 2023-02-26 | 15 | -14/+78 |
| | |||||
* | Add new checker `bad-chained-comparison` (#7990) | Zen Lee | 2023-02-26 | 4 | -2/+64 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add new check "implicit-flag-alias" (#8345) | James Addison | 2023-02-26 | 2 | -0/+54 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [doc] Add an example for 'non-ascii-file-name' (#8340) | Pierre Sassoulas | 2023-02-25 | 1 | -1/+1 |
| | | | | | And move links to related.rst Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> | ||||
* | Only count obviously non-terminating while-loops as return-ended (#8292) | Nick Drozd | 2023-02-23 | 2 | -1/+52 |
| |