From 8876c14daeaf78a7b754aa397eca333054a8c99a Mon Sep 17 00:00:00 2001 From: Darren Weber Date: Tue, 27 Jun 2023 20:43:29 -0700 Subject: [PATCH] Update pre-commit-config.yaml --- .pre-commit-config.yaml | 85 ++++++++++++++++++++++++++--------------- 1 file changed, 55 insertions(+), 30 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6602ed7..62f31f7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,31 +1,56 @@ +exclude: '^docs/|^examples/|^scripts/' +default_stages: [commit] + repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 - hooks: - - id: check-yaml - args: [--unsafe] - exclude: '.*templates.*.yaml' - - id: end-of-file-fixer - exclude: 'CHANGELOG.md' - - id: trailing-whitespace - exclude: 'CHANGELOG.md' - - id: check-ast - - repo: https://github.com/gruntwork-io/pre-commit - rev: v0.1.17 - hooks: - - id: shellcheck - - repo: https://github.com/psf/black - rev: 22.10.0 - hooks: - - id: black - - repo: https://github.com/pycqa/isort - rev: 5.10.1 - hooks: - - id: isort - name: isort (python) - - id: isort - name: isort (cython) - types: [cython] - - id: isort - name: isort (pyi) - types: [pyi] + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: trailing-whitespace + exclude: 'CHANGELOG.md' + - id: end-of-file-fixer + exclude: 'CHANGELOG.md' + - id: check-ast + - id: check-json + - id: check-toml + - id: check-xml + - id: check-yaml + args: [--unsafe] + exclude: '.*templates.*.yaml' + - id: debug-statements + - id: check-builtin-literals + - id: check-case-conflict + - id: check-docstring-first + - id: detect-private-key + + - repo: https://github.com/gruntwork-io/pre-commit + rev: v0.1.22 + hooks: + - id: shellcheck + + - repo: https://github.com/asottile/pyupgrade + rev: v3.7.0 + hooks: + - id: pyupgrade + args: [--py38-plus] + + - repo: https://github.com/psf/black + rev: 23.3.0 + hooks: + - id: black + + - repo: https://github.com/PyCQA/isort + rev: 5.12.0 + hooks: + - id: isort + args: ["--profile", "black", "--filter-files"] + + - repo: https://github.com/PyCQA/flake8 + rev: 6.0.0 + hooks: + - id: flake8 + +# sets up .pre-commit-ci.yaml to ensure pre-commit dependencies stay up to date +ci: + autoupdate_schedule: weekly + skip: [] + submodules: false