Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 517 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 517 Bytes

pre-commit with yapf + isort

If you want to have isort sorting your imports but yapf formatting your code, and check for this with pre-commit you need this!

Using yapf+isort with pre-commit

Add this to your .pre-commit-config.yaml:

-   repo: https://github.com/saily/pre-commit-yapf-isort
    sha: ''  # Use the sha / tag you want to point at
    hooks:
    -   id: yapf-isort