Questions about linter for PyTorch

Hi, guys.
I am currently trying to find some linters to do some static analysis for pt, in order to find some memory issues.

Are there any off-the-shelf static analysis tools we can use (both check Python, CPP, and cuda)? My check includes array overreach, memory access is not aligned and so on.

thanks in advance!

Maybe a start?