A tool that formats all kinds of languages consistently
Project description
Monoformat
Opinionated and "zero config" formatters like Black and Prettier are amazing in the sense that they remove any need for thinking about formatting. However, they still require you to:
- Be used separately (one is Python and the other is Node)
- Be configured for the language version and so forth
Monoformat does this automatically. You can only use the language version that monoformat allows and you can configure literally nothing except which files it's going to reformat and which it's not.
Installation
Monoformat is available on PyPI:
pip install monoformat
Usage
Monoformat is a command line tool. You can run it with:
monoformat .
This will reformat all files in the current directory and its subdirectories.
It will take care to avoid .git
and other special directories. There is a
default pattern embedded but you can change it with the --do-not-enter
flag,
which is a pattern matching folder or file names you don't want to consider.
Supported languages
Monoformat supports the following languages:
- Python (Black)
- JavaScript (Prettier)
- TypeScript (Prettier)
- JSON (Prettier)
- Markdown (Prettier)
- YAML (Prettier)
- HTML (Prettier)
- CSS (Prettier)
- SCSS (Prettier)
- Vue (Prettier)
- Svelte (Prettier)
- PHP (Prettier)
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 monoformat-0.1.0b1.tar.gz
.
File metadata
- Download URL: monoformat-0.1.0b1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.5 Linux/5.15.0-53-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 409b5d066918ee8c3bf2aaa15e9823c1ec14ea444338591f719d099667eac532 |
|
MD5 | 2bbd5c4c92d864a7c5ac3b7f2cb28972 |
|
BLAKE2b-256 | b9b4ce333a24d9b914a4e5663db3352eb8cceed8dad38b4420955f4b7785b982 |
Provenance
File details
Details for the file monoformat-0.1.0b1-py3-none-any.whl
.
File metadata
- Download URL: monoformat-0.1.0b1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.5 Linux/5.15.0-53-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37549c3d91c49533a115253d57f5cfcb2d76c3839fb164931c896a2ee223fd38 |
|
MD5 | 96831ce002eb3c103dd458fcbc8eea49 |
|
BLAKE2b-256 | d50037453f056519d9b5fd2012b1d6d47cc9a3927791c81fd20137ae632c0091 |