A very bad formatter for any programming language with braces and semicolons (eg. c/c++/java/javascript/rust)
Project description
badfmt
A very bad formatter for any programming language with braces and semicolons (e.g., c/c++/java/javascript/rust)
Description
badfmt
is a command-line tool that attempts to format code files written in programming languages with braces and semicolons. It makes the code seem like it doesn't have any semicolons or braces but puts them at the very end of the line away from sight. It is designed to be a joke formatter and should not be used in production codebases.
Installation
To install badfmt
, you need to have Python 3.8 or higher installed. You can then use pip
to install the package:
pip install badfmt
Usage
To use badfmt, simply run the following command:
python -m badfmt [filepath]
Replace [filepath] with the path to the file you want to format. The tool will attempt to format the file in place.
You can also specify the maximum line length using the -l or --line-len option. For example:
badfmt -l 80 [filepath]
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
File details
Details for the file badfmt-1.0.1.tar.gz
.
File metadata
- Download URL: badfmt-1.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9567b731031758d2adf795b9b74299f2069ad37beee12935a75b8a1d43603568 |
|
MD5 | 84dded5af900d877cca7b5adc2ca6f85 |
|
BLAKE2b-256 | 67ffb8ad131db172d3633b6fa75816ed33d72e693cdb0deede486ac4b2da21cc |
File details
Details for the file badfmt-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: badfmt-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b36f52c9cc35c33f9e37803e542b4f1fffc50e8213ccb7cc19dfe91c979ab5b |
|
MD5 | fe6d536f525874d81ec6827811766edd |
|
BLAKE2b-256 | ec52f353340196fe9fe42c51b3177ed16b874dc23ead644883415a057527a88d |