# 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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/4Catalyzer/fourmat",
"name": "fourmat",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "lint autoformat black flake8 isort",
"author": "Giacomo Tagliabue",
"author_email": "giacomo@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/43/6e/3436c16399bcc91a35c3210a7fc0f66bd911639f7d73a3735d5dbfccb00a/fourmat-2.0.0.tar.gz",
"platform": null,
"description": "# Fourmat\n\nA library for batteries-included linting and autoformatting.\n\n## Installation and Usage\n\nInstall fourmat through pip:\n\n```sh\n$ pip install fourmat\n```\n\nCreate a `.fourmat` file to specify the directories and files to check.\n\n```sh\n$ fourmat check\n\n$ fourmat fix\n```\n\n## Adding Fourmat as a pre-commit hook\n\nInstall the pre-commit package:\n\n```sh\n$ pip install pre-commit\n```\n\nCreate a `.pre-commit-config.yaml` containing:\n\n```yaml\nrepos:\n- repo: https://github.com/4Catalyzer/fourmat\n rev: master # or specify a version\n hooks:\n - id: fourmat\n```\n\nthen install the hook:\n\n```\n$ pre-commit install\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A library for batteries-included linting and autoformatting",
"version": "2.0.0",
"project_urls": {
"Homepage": "https://github.com/4Catalyzer/fourmat"
},
"split_keywords": [
"lint",
"autoformat",
"black",
"flake8",
"isort"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "7321f1be1dc2e46715bd0b076ae60d81c86082512317565e543b413eb6314699",
"md5": "177695a4ad7800dd932cbdd0ce1b2342",
"sha256": "3ae970476cd65f747446be322d6c883d78653cc8f1cd4cc7762b00164f3777e2"
},
"downloads": -1,
"filename": "fourmat-2.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "177695a4ad7800dd932cbdd0ce1b2342",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 5402,
"upload_time": "2025-09-11T16:29:19",
"upload_time_iso_8601": "2025-09-11T16:29:19.023171Z",
"url": "https://files.pythonhosted.org/packages/73/21/f1be1dc2e46715bd0b076ae60d81c86082512317565e543b413eb6314699/fourmat-2.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "436e3436c16399bcc91a35c3210a7fc0f66bd911639f7d73a3735d5dbfccb00a",
"md5": "0ad5c4f77056c44e59247dc798b231c3",
"sha256": "345029938a0d5dffc0ef0ebbb33d7f333936e3cf145d5bfd2a5c6a7a345a5b09"
},
"downloads": -1,
"filename": "fourmat-2.0.0.tar.gz",
"has_sig": false,
"md5_digest": "0ad5c4f77056c44e59247dc798b231c3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 4971,
"upload_time": "2025-09-11T16:29:19",
"upload_time_iso_8601": "2025-09-11T16:29:19.788130Z",
"url": "https://files.pythonhosted.org/packages/43/6e/3436c16399bcc91a35c3210a7fc0f66bd911639f7d73a3735d5dbfccb00a/fourmat-2.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-11 16:29:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "4Catalyzer",
"github_project": "fourmat",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "fourmat"
}