Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 619 Bytes

README.md

File metadata and controls

43 lines (29 loc) · 619 Bytes

Fourmat

A library for batteries-included linting and autoformatting.

Installation and Usage

Install fourmat through pip:

$ pip install fourmat

Create a .fourmat file to specify the directories and files to check.

$ fourmat check

$ fourmat fix

Adding Fourmat as a pre-commit hook

Install the pre-commit package:

$ pip install pre-commit

Create a .pre-commit-config.yaml containing:

repos:
- repo: https://github.com/4Catalyzer/fourmat
  rev: master  # or specify a version
  hooks:
    - id: fourmat

then install the hook:

$ pre-commit install