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.

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page