/pre-commit-yapf-isort

Run yapf first and fix imports with isort

Primary LanguageShellMIT LicenseMIT

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