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

Yapf support toml but pre-commit does not #22

Closed
jefer94 opened this issue Jul 29, 2022 · 2 comments
Closed

Yapf support toml but pre-commit does not #22

jefer94 opened this issue Jul 29, 2022 · 2 comments

Comments

@jefer94
Copy link

jefer94 commented Jul 29, 2022

pdm use by default pyproject.toml and yapf get the toml file before setup.cfg

image

PR #21

@asottile
Copy link
Member

don't post screenshots of text: they're unsearchable, un copyable, and can't be read in my accessibility options

use additional_dependencies, it's exactly what this is designed for

@jefer94
Copy link
Author

jefer94 commented Jul 29, 2022

That resolve my issue 👍

-   repo: local
    hooks:
    -   id: pylint
        name: pylint
        entry: pylint
        language: system
        types: [python]
        require_serial: true
    -   id: check-x
        name: Check X
        entry: ./bin/check-x.sh
        language: script
        files: \.x$
    -   id: scss-lint
        name: scss-lint
        entry: scss-lint
        language: ruby
        language_version: 2.1.5
        types: [scss]
+       additional_dependencies: ['scss_lint:0.52.0']

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants