Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add optional `prefer-typing-namedtuple` message (#8681)HEADmain | Jacob Walls | 2023-05-16 | 1 | -8/+14 |
| | | | Closes #8660 | ||||
* | Drop support for Python 3.7 (#8609) | Marc Mueller | 2023-04-24 | 1 | -6/+1 |
| | | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests | ||||
* | [PyCQA migration] Upgrade links to the repositories in code and doc (#8514) | Pierre Sassoulas | 2023-03-29 | 3 | -6/+6 |
| | |||||
* | Add Python 3.8+ `asyncSetUp` to "defining-attr-methods" list (#8403) | Samuel FORESTIER | 2023-03-11 | 1 | -1/+7 |
| | |||||
* | Use UninferableBase instead of Uninferable | Daniel van Noord | 2023-03-07 | 2 | -10/+9 |
| | |||||
* | Accept values of the form ``<class name>.<attribute name>`` for the ↵ | Mark Byrne | 2023-03-03 | 1 | -6/+17 |
| | | | | | | | | `exclude-protected` list (#8364) Closes #7343 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Refactor the `_check_protected_attribute_access` method to reduce ↵ | Mark Byrne | 2023-03-01 | 1 | -67/+69 |
| | | | | indentation. (#8366) | ||||
* | Add new check "implicit-flag-alias" (#8345) | James Addison | 2023-02-26 | 1 | -8/+58 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fixing some too long lines (#8339) | Ollie | 2023-02-25 | 1 | -2/+4 |
| | | | | | * Changing flake8 max-line-length to 120 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [typing] Use __future__ annotations where possible (#8264) | Pierre Sassoulas | 2023-02-12 | 1 | -1/+1 |
| | |||||
* | Tighten design constraints (#8115) | Nick Drozd | 2023-01-28 | 1 | -0/+3 |
| | | | | | | | | | | | | | * Lower max locals * Lower max statements * Lower max try statements * Lower max branches * Lower max args * Cut design constraints with default values | ||||
* | add test for Uninferable | clavedeluna | 2023-01-24 | 1 | -3/+0 |
| | |||||
* | class attrs should not emit assigning-non-slot msg (#7987) | Dani Alcala | 2022-12-30 | 1 | -7/+13 |
| | |||||
* | [pre-commit] Upgrade to black 23.1a1 with 2023's formatting (#7965) | Pierre Sassoulas | 2022-12-27 | 2 | -2/+0 |
| | |||||
* | Cut oldstyle checks | Nick Drozd | 2022-11-30 | 1 | -3/+0 |
| | |||||
* | Define Protocol as abstract to prevent abstract-method FP (#7839) | Dani Alcala | 2022-11-30 | 1 | -11/+1 |
| | |||||
* | Fix `valid-metaclass-classmethod-first-arg` default value (#7791) | Cubicpath | 2022-11-19 | 1 | -1/+1 |
| | | | | | * Change default value to "mcs" * Fix functional tests to use "mcs" for first MetaClass classmethod arg | ||||
* | Fix a crash when looking up an __init__ method (#7744) | Mark Byrne | 2022-11-12 | 1 | -2/+4 |
| | | | | | | | | | | | | | | * Fix a crash when a child class with an ``__init__`` method inherits from a parent class with an ``__init__`` class attribute. * `continue` if not a method. * Update pylint/checkers/classes/class_checker.py * Rename fragment Closes #7742 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Replace no-method-argument with no-self-argument when variadic args present ↵ | Jakub Kuczys | 2022-09-23 | 1 | -5/+10 |
| | | | | | | (#7518) Also add method name to the error message | ||||
* | Update wording to clarify overriding object. (#7504) | Dani Alcala | 2022-09-20 | 1 | -2/+5 |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Add child class name and confidence to ``abstract-method`` message (#7503) | Dani Alcala | 2022-09-20 | 1 | -2/+8 |
| | | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> | ||||
* | [invalid-class-object] Better error message giving more information | Pierre Sassoulas | 2022-09-16 | 1 | -2/+7 |
| | |||||
* | [invalid-class-object] Set the confidence correctly for the check | Pierre Sassoulas | 2022-09-16 | 1 | -1/+1 |
| | |||||
* | [invalid-class-object] Fix crash when __class__ is defined with a tuple | Pierre Sassoulas | 2022-09-16 | 1 | -1/+12 |
| | | | | Closes #7467 | ||||
* | Turn on ``mypy`` strict mode 🎉 (#7448) | Daniël van Noord | 2022-09-09 | 1 | -3/+3 |
| | | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode | ||||
* | Finish typing across the codebase | Daniël van Noord | 2022-09-09 | 1 | -3/+5 |
| | |||||
* | Finish some incomplete typing signatures (#7442) | Daniël van Noord | 2022-09-09 | 1 | -1/+1 |
| | |||||
* | Complete typing of all generic types (#7406) | Daniël van Noord | 2022-09-04 | 1 | -2/+2 |
| | | | | And update ``mypy`` configuration | ||||
* | Prevent `useless-parent-delegation` for overriding `Exception.__init__` with ↵ | Jacob Walls | 2022-08-21 | 1 | -0/+2 |
| | | | | new args | ||||
* | Fix false positive for `no-self-argument` (#7301) | Mark Byrne | 2022-08-13 | 1 | -0/+3 |
| | | | | | * Fix false positive for `no-self-argument` when a staticmethod is applied to a function but uses a different name. Closes #7300 | ||||
* | Fix crash when a type-annotated `__slots__` with no value is declared. (#7285) | Mark Byrne | 2022-08-11 | 1 | -2/+3 |
| | | | | | * Fix crash when a type-annotated `__slots__` with no value is declared. Closes #7280 | ||||
* | [typing] Add typing to the class checkers (#7190) | Pierre Sassoulas | 2022-08-10 | 2 | -56/+93 |
| | | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Don't emit ``super-init-not-called`` for abstract ``__init__`` methods (#7227) | Daniël van Noord | 2022-07-31 | 1 | -5/+5 |
| | |||||
* | Add partial typing to ``class_checker`` (#7088) | Daniël van Noord | 2022-07-07 | 1 | -20/+49 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [usless-parent-delegation] Set confidence to inference instead of undefined | Pierre Sassoulas | 2022-06-24 | 1 | -2/+5 |
| | |||||
* | [useless-super-delegation] Rename the message to useless-parent-delegation | Pierre Sassoulas | 2022-06-24 | 1 | -7/+6 |
| | |||||
* | Fix false positive for ``useless-super-delegation`` for variadics (#6949) | Daniël van Noord | 2022-06-15 | 1 | -0/+6 |
| | |||||
* | Fix a crash in `unused-private-member` with chained private attributes (#6710) | Jacob Walls | 2022-05-26 | 1 | -1/+1 |
| | |||||
* | Some initial line wrapping of docstrings (#6672) | Daniël van Noord | 2022-05-23 | 1 | -3/+8 |
| | |||||
* | Update ``pydocstringformatter`` to ``0.6.0`` (#6671) | Daniël van Noord | 2022-05-23 | 1 | -1/+0 |
| | |||||
* | Suppress useless-super-delegation on __hash__ in classes with __eq__ (#6611) | Tim Martin | 2022-05-15 | 1 | -47/+62 |
| | | | | | | | | | | | | | | * Suppress useless-super-delegation on __hash__ in classes with __eq__ If the class overrides __eq__, then the runtime will look for a definition of __hash__, which will have an effect even if it is trivial. (#3934) * Extract a helper function to avoid "too many returns" pylint warning * Improve comments and add a type declaration * Use safe_infer() for inferring the function expression | ||||
* | Update all ``TODO: 2.14`` (#6573) | Daniël van Noord | 2022-05-10 | 1 | -1/+0 |
| | |||||
* | Fix invalid-enum-extension with IntFlag (#6511) | Marc Mueller | 2022-05-05 | 1 | -10/+10 |
| | |||||
* | Move no-self-use to optional extension (#6448) | Marc Mueller | 2022-05-05 | 1 | -45/+0 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Disable fixme for internal uses before we make it optional in #3512 (#6482) | Pierre Sassoulas | 2022-05-01 | 1 | -1/+0 |
| | |||||
* | Run development version of ``pydocstringformatter`` (#6469) | Daniël van Noord | 2022-04-28 | 1 | -5/+5 |
| | |||||
* | Add typing to ``BaseChecker`` ``msgs`` and ``reports`` (#6456) | Daniël van Noord | 2022-04-25 | 1 | -1/+4 |
| | |||||
* | Fix emit might be undefined in special method checker | Pierre Sassoulas | 2022-04-22 | 1 | -0/+1 |
| | |||||
* | Migrate from utils.check_messages to utils.only_required_for_messages (#6432) | Pierre Sassoulas | 2022-04-22 | 1 | -2/+2 |
| | |||||
* | Migrate from 'check_messages' to 'only_required_for_messages' (#6417) | Pierre Sassoulas | 2022-04-21 | 1 | -5/+5 |
| |