remove-empty-comment
Little pre-commit script that remove empty comments from your code
If you feel the need for separators in your code, you might as well start using functions.
Installation
- repo: https://github.com/Pierre-Sassoulas/remove-empty-comment/
rev: 1.0.2
hooks:
- id: remove-empty-commentBefore
###############
# main function
###############
def main():
a = 1
b = 2
c = a + b
#
print(c)After
# main function
def main():
a = 1
b = 2
c = a + b
print(c)