Commit 6bdb1eca authored by Adrian Pino's avatar Adrian Pino Committed by GitHub
Browse files

Merge pull request #49 from OpenOperatorPlatform/feature/add-pre-commit-hook

Polish the precommit hooks config
parents 8e998e90 9241de66
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
    -   id: check-added-large-files
    -   id: check-executables-have-shebangs
#   -   id: check-yaml
    -   id: end-of-file-fixer
        exclude: ^caas/cfg/
    -   id: fix-encoding-pragma
    -   id: requirements-txt-fixer
    -   id: trailing-whitespace
    # https://stackoverflow.com/a/76200334/2186237
-   repo: https://github.com/pycqa/isort
    rev: 6.0.1
    hooks:
@@ -25,17 +18,9 @@ repos:
    -   id: black
        args:
            # - "--check"
            - "--target-version=py38"
            - "--target-version=py39"
            - "--target-version=py310"
            - "--target-version=py311"
            - "--target-version=py312"
-   repo: https://github.com/pycqa/flake8
    rev: 7.0.0
    hooks:
    -   id: flake8
        additional_dependencies: []
#-   repo: https://github.com/hhatto/autopep8
#    rev: v2.0.4
#    hooks:
#    -   id: autopep8