Skip to content

pre-commit git hook #26

@dgahle

Description

@dgahle

Below is example YAML code for added precommit git hooks.

repos:
-   repo: local
    hooks:
    -   id: black
        name: running black
        entry: black
        language: system
        types: [python]
    -   id: flake8
        name: running flake8
        entry: flake8
        language: system
        types: [python]
    -   id: isort
        args: ["--profile", "black"]
        name: running isort
        entry: isort
        language: system
        types: [python]

Useful:

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions