Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bump astroid to 3.0.0a1 (#8626) | Marc Mueller | 2023-04-25 | 3 | -3/+9 |
| | |||||
* | Drop support for Python 3.7 (#8609) | Marc Mueller | 2023-04-24 | 14 | -87/+15 |
| | | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests | ||||
* | Use astroid.Context enum (#8611) | Marc Mueller | 2023-04-24 | 1 | -5/+5 |
| | |||||
* | Fix `FunctionDef` isinstance checks (#8607) | Marc Mueller | 2023-04-23 | 3 | -7/+7 |
| | |||||
* | Optimize `is_trailing_comma()` (#8606) | Jacob Walls | 2023-04-23 | 1 | -4/+5 |
| | | | Skip is_trailing_comma() call unless `trailing-comma-tuple` enabled | ||||
* | 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. | ||||
* | Modified all occurences of "a f-string" to "an f-string" | Elazrod56 | 2023-04-20 | 2 | -3/+3 |
| | |||||
* | Minor refactor on type annotation (#8587) | Zen Lee | 2023-04-18 | 1 | -1/+3 |
| | |||||
* | Fix FP `used-before-assignment` for statements guarded under same test (#8581) | Jacob Walls | 2023-04-16 | 1 | -0/+35 |
| | |||||
* | Improve output of `consider-using-generator` message for `min()` calls with ↵ | Jacob Walls | 2023-04-16 | 1 | -1/+5 |
| | | | | `default` keyword (#8582) | ||||
* | Cope with changes to `Starred` constructor | Jacob Walls | 2023-04-16 | 1 | -1/+9 |
| | |||||
* | Fix `used-before-assignment` TYPE_CHECKING false negatives (#8431) | Zen Lee | 2023-04-15 | 1 | -20/+62 |
| | | | | 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 | 1 | -0/+5 |
| | | | | **kwargs (#8575) | ||||
* | Disable Info linters in definition instead of Run class (#8576) | Matus Valo | 2023-04-14 | 1 | -0/+1 |
| | |||||
* | Fix false positive for ``keyword-arg-before-vararg`` (#8571) | Mark Byrne | 2023-04-13 | 1 | -1/+7 |
| | | | | | * 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 | -4/+11 |
| | | | | | 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/+2 |
| | | | | 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 | 1 | -1/+6 |
| | | | | functions. (#8537) | ||||
* | Fix isinstance-second-argument-not-valid-type for union types with None | Rogdham | 2023-04-07 | 1 | -5/+8 |
| | |||||
* | Fix typelias `invalid-name` false positives for Union variables without ↵ | Yilei "Dolee" Yang | 2023-04-07 | 1 | -4/+1 |
| | | | | assignment. (#8541) | ||||
* | Do not emit `logging-not-lazy` for explicitly concatenated strings. (#8546) | Yilei "Dolee" Yang | 2023-04-07 | 1 | -1/+14 |
| | |||||
* | Fix check unused arguments false positive bug (#8542) | Théo Battrel | 2023-04-06 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | | | | 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 | 4 | -46/+29 |
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jared Proffitt <jaredproffitt@gmail.com> | ||||
* | Don't use removed function from ``astroid`` (#8525) | Daniël van Noord | 2023-04-01 | 1 | -5/+11 |
| | |||||
* | [cleanup] Upgrade more doc following the PyCQA migration | Pierre Sassoulas | 2023-03-31 | 2 | -2/+2 |
| | |||||
* | Fix `used-before-assignment` false positive for `TYPE_CHECKING` elif branch ↵ | Zen Lee | 2023-03-30 | 2 | -157/+119 |
| | | | | | | 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 | 47 | -111/+112 |
| | |||||
* | Allow integers in TypeAlias names (#8488) | Stephane Odul | 2023-03-28 | 1 | -1/+3 |
| | |||||
* | Fix `unnecessary-lambda` false positive for lambdas using its parameters in ↵ | cherryblossom | 2023-03-28 | 1 | -0/+8 |
| | | | | | | | their body (#8498) Fixes #8496 | ||||
* | Don't consider ``Union`` to always be a type alias (#8489) | Daniël van Noord | 2023-03-23 | 1 | -1/+7 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [deprecation] Remove duplicated utils typing guards check (#8475) | Pierre Sassoulas | 2023-03-22 | 1 | -43/+0 |
| | |||||
* | Upgrade TODO for pylint 2.X to pylint 3.0 (#8480) | Pierre Sassoulas | 2023-03-22 | 1 | -1/+1 |
| | | | Closes #8335 | ||||
* | Fix incorrect preferred-modules matches | Daniël van Noord | 2023-03-21 | 1 | -1/+9 |
| | | | | Co-authored-by: d33bs <dave.bunten@cuanschutz.edu> | ||||
* | Add explicit 'stack_level' keyword in Deprecation/User warnings | Pierre Sassoulas | 2023-03-21 | 1 | -0/+2 |
| | |||||
* | [ruff] Add RUF specific rules and autofix (#8449) | Pierre Sassoulas | 2023-03-14 | 5 | -6/+6 |
| | |||||
* | [cyclic-import] Break cycle between pylint.checkers.util / variables (#8448) | Pierre Sassoulas | 2023-03-14 | 2 | -24/+21 |
| | |||||
* | Deprecate redundant type checking guard utils (#8433) | Jacob Walls | 2023-03-12 | 3 | -20/+41 |
| | |||||
* | Add Python 3.8+ `asyncSetUp` to "defining-attr-methods" list (#8403) | Samuel FORESTIER | 2023-03-11 | 1 | -1/+7 |
| | |||||
* | 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 |
| | |||||
* | [overgeneral-exceptions] Only handle qualified names (#8411) | Pierre Sassoulas | 2023-03-09 | 1 | -17/+12 |
| | | | | | * [overgeneral-exceptions] Only handle qualified names * fix changelog | ||||
* | Remove deprecated functions and classes (#8409) | Daniël van Noord | 2023-03-09 | 3 | -86/+0 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [FileState] Make Pylinter.current_name and msg_store non nullable | Pierre Sassoulas | 2023-03-08 | 1 | -1/+1 |
| | |||||
* | [__implements__] Remove everything related to the rejected PEP245 (#8404) | Pierre Sassoulas | 2023-03-08 | 1 | -26/+5 |
| | |||||
* | Remove all old code related to ``optparse`` config parsing. (#8405) | Daniël van Noord | 2023-03-08 | 1 | -5/+3 |
| | | | | | * Remove all old config parsing code * Temporarily disable a test | ||||
* | [deprecation] Remove ``get_message_definitions`` from ``BaseChecker`` (#8401) | Pierre Sassoulas | 2023-03-08 | 1 | -14/+0 |
| | |||||
* | Bump pylint to 2.17.0, update changelog (#8395) | Pierre Sassoulas | 2023-03-07 | 2 | -2/+2 |
| | |||||
* | Use UninferableBase instead of Uninferable | Daniel van Noord | 2023-03-07 | 13 | -72/+78 |
| | |||||
* | Upgrade to astroid 2.15.0 (#8387) | Pierre Sassoulas | 2023-03-07 | 2 | -2/+2 |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | 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> |