Skip to main content

No project description provided

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

remove_empty_comment-1.0.2-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page