pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Current problem When trying to debug pylint configuration issues it can be difficult to identify what the current configuration values are and where they came from, _(CLI or actual...
### Bug description I have a package that sits in a child folder of the current working directory (./src). Now if I want to to run pyreverse for this module...
### Current problem Hello, I'm a happy user of pylint, but there are no auto-completion files for the shell. ### Desired solution I have created auto-completion files for bash, fish...
### Bug description ``` #!/usr/bin/env python3 values = {} accumulated_values = {} id = 0 for r in [1, 2, 3, 4, 5]: id += 1 if id == 1:...
### Bug description ``` # pylint: disable=missing-docstring class Ints(set[int]): def __init__(self): self |= {0} self.member = True def method(self) -> None: print(self.member) print(list(Ints())) print(Ints().member) ``` ### Configuration _No response_ ###...
### Bug description If the type is used inside of quotes and combined with other types using `|`, pylint doesn't count it as a type usage, and reports a warning....
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :sparkles: New feature | ## Description This PR adds a new check to warn...
Missing mandatory keyword argument (E1125) with explicit mandatory keywords and keyword dictionary
### Bug description kwargs.py: ``` """kwargs module""" def fun(a,b,*,c,d,**kwargs): """function with kwargs""" return a + b + c + d + kwargs['e'] + kwargs['f'] someargs = {} someargs['c'] = 3...
In #9990, we [discovered](https://github.com/pylint-dev/pylint/pull/9990#issuecomment-2411463617) that extending the fix for false negatives for used-before-assignment for objects guarded behind type-checking blocks to include functions would cause a handful of false positives in...
bare-except doesn't trigger if the except body directly contains a raise call. pylint 2.4.4 astroid 2.3.3 Python 3.7.3+ (heads/3.7:e64d21b187, Apr 23 2019, 10:57:08) ```python def foo(arg): try: pass except: #...