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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file remove_empty_comment-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: remove_empty_comment-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for remove_empty_comment-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5203437db08a7a9547041f540617286a8169c01db97f41f70352e6bf1381374f
MD5 ae74a3ffd2eb0ab14b371a7344872a43
BLAKE2b-256 2ed44dda36f67bfa64d6adad5b95d796dca6adb07f379ae49f9ebcaf905e0ad9

See more details on using hashes here.

Supported by

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