mec07 / PyLATO

Noncollinear Magnetic Tight Binding code
GNU General Public License v2.0
3 stars 2 forks source link

Add python static analysis #9

Open mec07 opened 5 years ago

mec07 commented 5 years ago

One of the key problems with python is that there is no in built static analysis that comes automatically when you have a compiler. In python, you just hit the problem at runtime. This means that, unless you have really good code coverage (which we don't right now), you're quite likely to run into problems at runtime.

A quick google revealed a tool called prospector that we could use for python static analysis. There may be other good static analysis tools, but Im not aware of them.

horsfielda commented 5 years ago

Prospector looks like a very useful tool.

I think you get some static analysis when python produces its intermediate byte code. But I am not sure how much.

-- --------------------------------------------------- Andrew Horsfield a.horsfield@imperial.ac.uk Department of Materials, Imperial College London South Kensington Campus, London SW7 2AZ, U.K. Phone:+44-(0)20-7594-6753 ---------------------------------------------------

On Sat, 24 Nov 2018, Marc Coury wrote:

One of the key problems with python is that there is no in built static analysis that comes automatically when you have a compiler. In python, you just hit the problem at runtime. This means that, unless you have really good code coverage (which we don't right now), you're quite likely to run into problems at runtime.

A quick google revealed a tool called prospector that we could use for python static analysis. There may be other good static analysis tools, but Im not aware of them.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/mec07/PyLATO/issues/9