Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix a false negative for ``too-many-arguments`` and positional-only and ↵ | Mark Byrne | 2023-05-15 | 1 | -1/+1 |
| | | | | | | | | keyword-only arguments (#8674) Closes #8667 | ||||
* | Modified comment on line 147 to improve spelling | Elazrod56 | 2023-04-20 | 1 | -1/+1 |
| | |||||
* | [PyCQA migration] Upgrade links to the repositories in code and doc (#8514) | Pierre Sassoulas | 2023-03-29 | 11 | -23/+23 |
| | |||||
* | Prevent emitting ``invalid-name`` on 'global' redefinition (#8337) | Mark Byrne | 2023-02-27 | 2 | -2/+1 |
| | | | | | Closes #8307 | ||||
* | [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> | ||||
* | Fix `nested-min-max` output msg for sequences (#8234) | Dani Alcala | 2023-02-08 | 2 | -0/+29 |
| | |||||
* | Add tests to improve coverage (#8096) | Dani Alcala | 2023-01-26 | 1 | -2/+8 |
|\ | |||||
| * | add test for Uninferable | clavedeluna | 2023-01-24 | 1 | -2/+8 |
| | | |||||
* | | Update disallowed-name to flag module-level variables (#7808) | Dani Alcala | 2023-01-25 | 6 | -7/+7 |
|/ | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [pypy3.8] Disable multiple-statements false positive on affected functional ↵ | Pierre Sassoulas | 2022-12-15 | 4 | -12/+16 |
| | | | | tests | ||||
* | Fix ``no-else-return false Negative for try/except/else pattern (#7888) | Dani Alcala | 2022-12-12 | 5 | -28/+119 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add extension checker for nested min/max (#7550) | Osher De Paz | 2022-11-21 | 2 | -0/+29 |
| | | | | | | | | | | | | This adds a new checker (not active by default) which identifies usages similar to ``min(<arg1>, min(<arg2>, <arg3>))`` and suggests using a simplified form of ``min(<arg1>, <arg2>, <arg3>)``. Same goes for ``max`` usage. The logic is as follows: it detects calls to either ``min`` or ``max`` functions, and whenever one of their arguments is that same function, it emits the message. Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Add named-expr-without-context check (#7763) | Marc Mueller | 2022-11-14 | 3 | -0/+9 |
| | |||||
* | Extend `consider-using-join` to detect non-empty separators (#7481) | Levi Gruspe | 2022-11-13 | 1 | -1/+1 |
| | |||||
* | Rename `broad-except` and new check `broad-exception-raised` (#7709) | Dani Alcala | 2022-11-05 | 1 | -1/+1 |
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Move `consider-using-augmented-assign` to `CodeStyle` extension (#7628) | Marc Mueller | 2022-10-16 | 1 | -1/+1 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix false negative ``no-member`` when the code was a `manual` augmented ↵ | Dani Alcala | 2022-09-23 | 2 | -0/+29 |
| | | | | assignments (#7509) | ||||
* | Replace no-method-argument with no-self-argument when variadic args present ↵ | Jakub Kuczys | 2022-09-23 | 4 | -4/+27 |
| | | | | | | (#7518) Also add method name to the error message | ||||
* | Add functional test for false positive `not-callable` (#5593) | Mark Byrne | 2022-09-17 | 1 | -0/+11 |
| | | | | | | Closes #5113 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Remove Python 2 code from the tests & refactor (#7320) | Mark Byrne | 2022-08-18 | 22 | -85/+78 |
| | | | | | | | - 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> | ||||
* | Fix false positive for `no-self-argument` (#7301) | Mark Byrne | 2022-08-13 | 2 | -5/+27 |
| | | | | | * Fix false positive for `no-self-argument` when a staticmethod is applied to a function but uses a different name. Closes #7300 | ||||
* | Don't emit ``super-init-not-called`` for abstract ``__init__`` methods (#7227) | Daniël van Noord | 2022-07-31 | 2 | -2/+1 |
| | |||||
* | Add regression test for #7109 (#7112) | Jacob Walls | 2022-07-18 | 1 | -0/+8 |
| | |||||
* | Add regression test for #5832 (#7105) | Jacob Walls | 2022-07-17 | 1 | -1/+5 |
| | |||||
* | Fix false negative for `nonlocal-without-binding`. (#7099) | Mark Byrne | 2022-07-06 | 2 | -5/+21 |
| | |||||
* | [no-member] Add a regression test for a false positive (#7095) | Pierre Sassoulas | 2022-06-30 | 1 | -0/+13 |
| | | | Closes #3803 | ||||
* | Add regression test for #6497 (#6498) | Jacob Walls | 2022-05-09 | 1 | -0/+6 |
| | |||||
* | Move no-self-use to optional extension (#6448) | Marc Mueller | 2022-05-05 | 9 | -108/+9 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add `comparison-of-constants` checker (#6413) | omarandlorraine | 2022-05-04 | 1 | -1/+1 |
| | | | | | 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> | ||||
* | C2901 & C2902: New checks for unnecessary lambda expression usage (#6004) | Joe Young | 2022-05-04 | 3 | -2/+3 |
| | | | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix a crash in the ``unsupported-membership-test`` checker involving tuple ↵ | Jacob Walls | 2022-04-19 | 4 | -6/+32 |
| | | | | | | unpacking (#6367) An assumption of direct parentage between `AssignName` and `Assign` was violated by tuple unpacking. | ||||
* | Remove the 'no-init' message tat was not emitted anyway | Pierre Sassoulas | 2022-04-18 | 2 | -2/+2 |
| | | | | | | See https://github.com/PyCQA/pylint/issues/2409#issuecomment-1100952171 Closes #2409 | ||||
* | Normalize the pylint disables in functional tests | Pierre Sassoulas | 2022-04-18 | 1 | -1/+1 |
| | |||||
* | Remove removed messages from the tests (#6268) | Daniël van Noord | 2022-04-12 | 1 | -1/+1 |
| | |||||
* | Fix E1102 / ``not-callable`` false positive for property that returns a ↵ | Tushar Sadhwani | 2022-04-02 | 1 | -0/+24 |
| | | | | | | | lambda function conditionally (#6068) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | C2801: New check for manual __dunder__ methods (#5938) | Joe Young | 2022-03-30 | 1 | -1/+1 |
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Change 'nonexistent-operator' to allow repeated unary ops (with space or ↵ | Sergey B Kirpichev | 2022-03-29 | 1 | -0/+4 |
| | | | | | | | parens) (#6008) Closes #5769 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix #1555: Fix false negative for `no-member` when assigning instance ↵ | Jacob Walls | 2022-03-25 | 2 | -0/+38 |
| | | | | | attribute to itself (#5544) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Use ``node.position`` in ``add_message`` if available (#5897) | Daniël van Noord | 2022-03-12 | 15 | -30/+30 |
| | |||||
* | Add tests for #4826 (#5696) | Daniël van Noord | 2022-03-12 | 1 | -0/+13 |
| | |||||
* | Move functional test files to new structure | Daniël van Noord | 2022-02-10 | 9 | -0/+0 |
| | |||||
* | Clearer error message for useless-else-x type messages (#5736) | Pierre Sassoulas | 2022-01-30 | 4 | -28/+28 |
| | | | | | | | | | | * Clearer error message for useless-else-x type message See https://github.com/PyCQA/pylint/pull/5614#issuecomment-1023614434 for rationale. Closes #5598 Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | ||||
* | Fix typos in unit test docstrings (#5739) | Jacob Walls | 2022-01-28 | 3 | -3/+3 |
| | |||||
* | Fix ``super-init-not-called`` if parent or ``self`` is a ``Protocol`` (#5697) | Daniël van Noord | 2022-01-24 | 1 | -1/+1 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | ``unused-variable`` when `nonlocal` name in a multiple-assignment (#5700) | Mark Byrne | 2022-01-19 | 1 | -0/+14 |
| | | | | | | | | * Fixed false positive for ``unused-variable`` when a `nonlocal` name is assigned as part of a multi-name assignment. Closes #3781 Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | ||||
* | Add a checker for misleading unicode (#5311) | Kound | 2022-01-13 | 1 | -2/+2 |
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Improve non ascii checker (#5643) | Kound | 2022-01-10 | 59 | -5/+417 |
| | | | | | | | | | | * split ``non-ascii-name`` into 3 different msgs - non-ascii-identifier (replaces non-ascii-name) - non-ascii-file-name (a warning) - non-ascii-module-import (only considering the namespace the import is imported in) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix ``not-callable`` for attributes that alias ``NamedTuple`` (#5537) | Daniël van Noord | 2021-12-17 | 2 | -2/+14 |
| | |||||
* | Fix typos over the whole codebase (#5540) | Kian Meng, Ang | 2021-12-17 | 1 | -1/+1 |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Move tests from ``TestComparison`` to functional tests (#5520) | Daniël van Noord | 2021-12-13 | 2 | -15/+20 |
| | | | | * Remove some redundant tests |