Skip to content

How to configure within pre-commit #2

@Borda

Description

@Borda

Hello,
I was testing this extension and it seems that it does not follow the Black configuration from pyproject.toml which is

[tool.black]
line-length = 120
skip-magic-trailing-comma = true

the pre-commit configuration is:

  - repo: https://github.com/executablebooks/mdformat
    rev: 0.7.7
    hooks:
      - id: mdformat
        additional_dependencies:
          - mdformat-gfm
          - mdformat-black
          - mdformat_frontmatter

see sample here: Lightning-AI/pytorch-lightning#8673 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions