Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/4catalyzer/fourmat
Flake8 + Black + isort = ❤️
https://github.com/4catalyzer/fourmat
Last synced: 3 days ago
JSON representation
Flake8 + Black + isort = ❤️
- Host: GitHub
- URL: https://github.com/4catalyzer/fourmat
- Owner: 4Catalyzer
- License: mit
- Created: 2018-11-26T22:14:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-22T20:45:05.000Z (6 months ago)
- Last Synced: 2024-12-13T01:21:59.857Z (10 days ago)
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 33
- Watchers: 11
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fourmat
A library for batteries-included linting and autoformatting.
## Installation and Usage
Install fourmat through pip:
```sh
$ pip install fourmat
```Create a `.fourmat` file to specify the directories and files to check.
```sh
$ fourmat check$ fourmat fix
```## Adding Fourmat as a pre-commit hook
Install the pre-commit package:
```sh
$ pip install pre-commit
```Create a `.pre-commit-config.yaml` containing:
```yaml
repos:
- repo: https://github.com/4Catalyzer/fourmat
rev: master # or specify a version
hooks:
- id: fourmat
```then install the hook:
```
$ pre-commit install
```