diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 10959e513ce6bd8b9799fcc8f21eff646624958d..94636dde0735d45ec5fb4331381e67705f838269 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,30 +5,11 @@ repos: - repo: https://github.com/nbQA-dev/nbQA rev: 0.5.9 hooks: - - id: nbqa-isort - additional_dependencies: [isort==5.7.0] - args: [--nbqa-mutate] - - id: nbqa-flake8 - additional_dependencies: [flake8==3.9.0] - args: [--nbqa-mutate] - id: nbqa-check-ast - - repo: https://github.com/kynan/nbstripout - rev: 0.3.9 - hooks: - - id: nbstripout - repo: https://github.com/pycqa/isort rev: 5.7.0 hooks: - id: isort - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.0 - hooks: - - id: flake8 - # If `CI_MERGE_REQUEST_TARGET_BRANCH_SHA` env var is set then this will - # run flake8 on the diff from the current commit to the latest commit of - # the branch being merged into, otherwise it will run flake8 as it would - # usually execute via the pre-commit hook - entry: bash -c 'if [ -z ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA} ]; then (flake8 "$@"); else (git diff $CI_MERGE_REQUEST_TARGET_BRANCH_SHA | flake8 --diff); fi' -- - repo: https://github.com/myint/rstcheck rev: 3f92957478422df87bd730abde66f089cc1ee19b # commit where pre-commit support was added hooks: