Open PCManticore opened 6 years ago
Here some checks/use cases in pytype which can be included in pylint:
from collections import namedtuple
my_named_tuple = namedtuple('my_named_tuple', ['_abc'])
$ pytype sample.py
Analyzing 1 sources with 0 dependencies
File "sample.py", line 3, in
For more details, see https://github.com/google/pytype/blob/master/docs/errors.md#invalid-namedtuple-arg.
$ pylint sample.py
Your code has been rated at 10.00/10
x = "hello" ^ "world"
$ pytype sample.py
Analyzing 1 sources with 0 dependencies
File "sample.py", line 1, in
For more details, see https://github.com/google/pytype/blob/master/docs/errors.md#unsupported-operands.
$ pylint sample.py
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
https://github.com/google/pytype/blob/master/docs/errors.md Seems to have a bunch of errors similar to those from pylint. Let's see if we can learn anything from this tool (architectural decisions, new checks, etc.)