pylint: code style

  • Use the pylint plugin as an external tool to improve the code style.

  • remove the dead code

# check the lint
grep '.\{80\}' csim.c 
wc -L csim.c 

# check the leak
valgrind --leak-check=full --show-reachable=yes ./csim -s 14 -E 1024 -b 3 -t traces/trans.trace

# check the magic number

# check the vim
:set tabstop=4
:retab
:set shiftwidth=4

Tensorflow code style guide: https://www.tensorflow.org/community/contribute/code_style

Reference:

Last updated