Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Latest commit

 

History

History
28 lines (18 loc) · 972 Bytes

README.rst

File metadata and controls

28 lines (18 loc) · 972 Bytes

dprint pre-commit mirror


Unmaintained: I'm no longer maintaining this repository because it doesn’t work very well with changes to dprint. See Issue #3 and Issue #4. If you’d like to take over, please email me.


Mirror of dprint for pre-commit.

Installation

Add to your pre-commit config:

-   repo: https://github.com/adamchainz/pre-commit-dprint
    rev: ''  # Use the sha / tag you want to point at
    hooks:
    -   id: dprint

Then add a dprint.json (or .dprint.json) configuration file in the root of your repository.

By default all text files are passed to dprint, which then only acts on files for which it has a relevant plugin configured.