CLI to clean up your Python comments
Project description
Cleany
A CLI tool to clean up your comments
Install
Install via pip
$ pip install cleany
Invoke
Cleany is a command line tool. Once installed, invoke it from the command line:
$ cleany
> cleany -h for help
Remove all comments
$ cleany --nuke
Remove emojis only:
$ cleany --emoji
Change the path.
Cleany will search for .py files starting in your current directory and moving recursively down. If you would like to specify a directory, use --path:
$ cleany --nuke --path some-directory
Ignore directory
If you want Cleany to skip a directory, use --ignore-dir:
$ cleany --emoji --ignore-dir some-directory
You can ignore multiple directories:
$ cleany --emoji --ignore-dir some-directory --ignore-dir another-directory
Ignore file
If you want Cleany to skip a file, use --ignore-file:
$ cleany --nuke --ignore-file some_file.py
You do not need to include the full path to the file; just use the file name. Cleany will find and skip any file with that name.
Surpress Cleany's output
By default Cleany will provide output about the files it's cleaning up.
$ cleany --nuke
> ----- scanning comments in /src/main.py -----
> removing comment from line 85 of /src/main.py
> removing comment from like 115 of /src/main.py
> removed 2 comments from /src/main.py
If you want to surpress that output, use --quiet:
$ cleany --nuke --quiet
$
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cleany-0.0.3.tar.gz.
File metadata
- Download URL: cleany-0.0.3.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45710f498005f65c020cab6ccb2d1e5c5c127a284da7b841c3eee93efd3366aa
|
|
| MD5 |
29c2591ecc7a7586710336fe561981be
|
|
| BLAKE2b-256 |
fbdcd3975fd1fd6524b5c7e7a8e195af6df5c876eb25ab88fe67c210aa6209a0
|
Provenance
The following attestation bundles were made for cleany-0.0.3.tar.gz:
Publisher:
cleany.yml on weddleben/cleany
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cleany-0.0.3.tar.gz -
Subject digest:
45710f498005f65c020cab6ccb2d1e5c5c127a284da7b841c3eee93efd3366aa - Sigstore transparency entry: 1061552973
- Sigstore integration time:
-
Permalink:
weddleben/cleany@4b947d3c6ef397bfe2a7b9bba1dbab5f901e5313 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/weddleben
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cleany.yml@4b947d3c6ef397bfe2a7b9bba1dbab5f901e5313 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cleany-0.0.3-py3-none-any.whl.
File metadata
- Download URL: cleany-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27518cff39c0358294970e7926253e0b626c0bdc78f65f52d8e82015feb3ae83
|
|
| MD5 |
1a4f654c9ad35bac7fc03c80ae9db772
|
|
| BLAKE2b-256 |
469926a6217e8f5a57587506157da24277a4461f5d2dafdb7d09c21d2d39f9df
|
Provenance
The following attestation bundles were made for cleany-0.0.3-py3-none-any.whl:
Publisher:
cleany.yml on weddleben/cleany
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cleany-0.0.3-py3-none-any.whl -
Subject digest:
27518cff39c0358294970e7926253e0b626c0bdc78f65f52d8e82015feb3ae83 - Sigstore transparency entry: 1061552977
- Sigstore integration time:
-
Permalink:
weddleben/cleany@4b947d3c6ef397bfe2a7b9bba1dbab5f901e5313 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/weddleben
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cleany.yml@4b947d3c6ef397bfe2a7b9bba1dbab5f901e5313 -
Trigger Event:
push
-
Statement type: