remove-empty-comment

Little pre-commit script that remove empty comments from your code


License
MIT
Install
pip install remove-empty-comment==1.0.2

Documentation

remove-empty-comment

Little pre-commit script that remove empty comments from your code

PyPI version PRs Welcome

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-comment

Before

###############
# 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)