Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Drop support for Python 3.7 (#8609) | Marc Mueller | 2023-04-24 | 1 | -1/+1 |
| | | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests | ||||
* | Fix `FunctionDef` isinstance checks (#8607) | Marc Mueller | 2023-04-23 | 1 | -2/+3 |
| | |||||
* | Cache `class_is_abstract()` | Jacob Walls | 2023-04-23 | 1 | -0/+2 |
| | | | | | For one project in the pylint primer (music21), provides 15% speedup linting the entire project. | ||||
* | Handle patterns in ignored-modules when checking for no-name-in-module (#7579) | Daniel Mouritzen | 2023-04-03 | 1 | -27/+19 |
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jared Proffitt <jaredproffitt@gmail.com> | ||||
* | [cleanup] Upgrade more doc following the PyCQA migration | Pierre Sassoulas | 2023-03-31 | 1 | -1/+1 |
| | |||||
* | Fix `used-before-assignment` false positive for `TYPE_CHECKING` elif branch ↵ | Zen Lee | 2023-03-30 | 1 | -47/+0 |
| | | | | | | 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 | 1 | -2/+2 |
| | |||||
* | [deprecation] Remove duplicated utils typing guards check (#8475) | Pierre Sassoulas | 2023-03-22 | 1 | -43/+0 |
| | |||||
* | [ruff] Add RUF specific rules and autofix (#8449) | Pierre Sassoulas | 2023-03-14 | 1 | -1/+1 |
| | |||||
* | [cyclic-import] Break cycle between pylint.checkers.util / variables (#8448) | Pierre Sassoulas | 2023-03-14 | 1 | -3/+20 |
| | |||||
* | Deprecate redundant type checking guard utils (#8433) | Jacob Walls | 2023-03-12 | 1 | -0/+16 |
| | |||||
* | Fix a crash when `TYPE_CHECKING` is used without importing it (#8435) | Jacob Walls | 2023-03-11 | 1 | -1/+4 |
| | |||||
* | Clear LRU caches on pylint utilities (#8420) | Jacob Walls | 2023-03-10 | 1 | -1/+20 |
| | |||||
* | Remove deprecated functions and classes (#8409) | Daniël van Noord | 2023-03-09 | 1 | -52/+0 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Use UninferableBase instead of Uninferable | Daniel van Noord | 2023-03-07 | 1 | -10/+9 |
| | |||||
* | Changing flake8 to have max-line-length of 115 (#8362) | Ollie | 2023-03-02 | 1 | -1/+3 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Minor refactor to 'is_defined' (#8243) | Zen Lee | 2023-02-08 | 1 | -7/+5 |
| | |||||
* | Fix `used-before-assignment` false positive for TYPE_CHECKING if/elif/else ↵ | Zen Lee | 2023-02-07 | 1 | -0/+49 |
| | | | | usage (#8071) | ||||
* | Tighten design constraints (#8115) | Nick Drozd | 2023-01-28 | 1 | -0/+4 |
| | | | | | | | | | | | | | * Lower max locals * Lower max statements * Lower max try statements * Lower max branches * Lower max args * Cut design constraints with default values | ||||
* | Add `consider-refactoring-into-while-condition` checker (#8021) | yushao2 | 2023-01-27 | 1 | -0/+56 |
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | ||||
* | Fix `consider-using-augmented-assign` nested attribute access (#8088) | Marc Mueller | 2023-01-20 | 1 | -17/+1 |
| | |||||
* | Better regex for private attribute check (#8081) | Marc Mueller | 2023-01-19 | 1 | -1/+1 |
| | |||||
* | [consider-using-augmented-assign] Do not warn for non-commutative operators ↵ | Pierre Sassoulas | 2023-01-09 | 1 | -1/+6 |
| | | | | | | | | | | | (#8037) Or rather, only warn for known commutative operators. Closes #7639 Co-authored-by: Nick Drozd <nicholasdrozd@gmail.com> Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> | ||||
* | class attrs should not emit assigning-non-slot msg (#7987) | Dani Alcala | 2022-12-30 | 1 | -0/+8 |
| | |||||
* | Fix `use-sequence-for-iteration` when unpacking a set with `*` (#7975) | Dani Alcala | 2022-12-26 | 1 | -0/+14 |
| | |||||
* | Fixes ``method-cache-max-size-none`` false positive (#7908) | Dani Alcala | 2022-12-09 | 1 | -0/+4 |
| | | | | | | | For methods inheriting from ``Enum``. Closes #7857 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Cut oldstyle checks | Nick Drozd | 2022-11-30 | 1 | -6/+1 |
| | |||||
* | Define Protocol as abstract to prevent abstract-method FP (#7839) | Dani Alcala | 2022-11-30 | 1 | -4/+17 |
| | |||||
* | Create `TERMINATING_FUNCS_QNAMES` (#7825) | Dani Alcala | 2022-11-22 | 1 | -3/+8 |
| | |||||
* | Fix false positive for 'used-before-assignment' with terminating func (#7784) | Dani Alcala | 2022-11-17 | 1 | -0/+21 |
| | |||||
* | Fix false negatives for-any-all (#7707) | Dani Alcala | 2022-11-17 | 1 | -2/+11 |
| | |||||
* | Bump mypy from 0.982 to 0.990 (#7769) | dependabot[bot] | 2022-11-14 | 1 | -1/+1 |
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | ||||
* | Fix false positive for ``unhashable-member`` when subclassing ``dict``. (#7757) | Mark Byrne | 2022-11-14 | 1 | -1/+1 |
| | | | | | Closes #7501 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix a false negative for ``unused-import`` (#7678) | Mark Byrne | 2022-11-09 | 1 | -5/+8 |
| | | | | | | | | | | | * Fix a false negative for ``unused-import`` when a constant inside ``typing.Annotated`` was treated as a reference to an import. * Update with Daniël's suggestions: - More understandable function parameter name. - Update function parameter type: Expect a tuple of strings. Closes #7547 | ||||
* | [flake8-bugbear] Do not use 'assert False' but raise 'AssertionError()' | Pierre Sassoulas | 2022-11-05 | 1 | -1/+1 |
| | | | | As the former can be removed by interpreter optimisation. | ||||
* | @singledispatch and @singledispatchmethod checks for methods and functions ↵ | Ramon Saraiva | 2022-10-31 | 1 | -3/+44 |
| | | | | | | (#7575) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add `magic-number` checker for comparison with literals (#7526) | orSolocate | 2022-10-22 | 1 | -0/+8 |
| | | | Co-authored-by: Or Bahari <or.bahari@samsung.com> | ||||
* | Fix a false positive for `simplify-boolean-expression` when multiple values ↵ | Jacob Walls | 2022-10-16 | 1 | -1/+14 |
| | | | | | inferred (#7627) Add a keyword-only `compare_constants` argument to `safe_infer`. | ||||
* | Refactor check for ignored modules into reusable function (#7604) | Daniel Mouritzen | 2022-10-11 | 1 | -0/+36 |
| | |||||
* | Add ``consider-using-augmented-assign`` checker (#7514) | Daniël van Noord | 2022-09-22 | 1 | -0/+65 |
| | | | | Co-authored-by: clavedeluna <danalitovsky+git@gmail.com> Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> | ||||
* | Use stacklevel=2 in warnings.warn calls to DeprecationWarning where makes ↵ | Yilei "Dolee" Yang | 2022-09-15 | 1 | -0/+3 |
| | | | | | | | | sense. (#7465) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix `unhashable-member` crash when `lambda` used as a dict key (#7454) | Jacob Walls | 2022-09-12 | 1 | -0/+2 |
| | |||||
* | Turn on ``mypy`` strict mode 🎉 (#7448) | Daniël van Noord | 2022-09-09 | 1 | -10/+10 |
| | | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode | ||||
* | Finish some incomplete typing signatures (#7442) | Daniël van Noord | 2022-09-09 | 1 | -4/+4 |
| | |||||
* | Emit `used-before-assignment` when function arguments are redefined inside ↵ | Jacob Walls | 2022-09-04 | 1 | -0/+8 |
| | | | | an inner function | ||||
* | Fix #3299 false positives with names in string literal type annotations (#7400) | Levi Gruspe | 2022-09-04 | 1 | -0/+22 |
| | | | | | Don't emit 'unused-variable' or 'unused-import' on names in string literal type annotations (#3299) Don't treat strings inside typing.Literal as names | ||||
* | Check for ``contextlib.suppress`` in ``node_ignores_exception`` (#7327) | Daniël van Noord | 2022-08-22 | 1 | -5/+58 |
| | |||||
* | Fix typing of most inference calls | Daniël van Noord | 2022-07-13 | 1 | -5/+6 |
| | |||||
* | Partial typing of ``imports.py`` (#6982) | Daniël van Noord | 2022-07-13 | 1 | -1/+2 |
| | |||||
* | Add partial typing to ``class_checker`` (#7088) | Daniël van Noord | 2022-07-07 | 1 | -2/+2 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> |