From cd102fbc0bb2507ba06a1191a7ddaae54285c3bb Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Sun, 13 Oct 2024 20:51:59 +0200 Subject: [PATCH] Reverted .pre-commit-config.yaml --- .pre-commit-config.yaml | 132 ++++++++++++++++++++-------------------- 1 file changed, 66 insertions(+), 66 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f7a6041..0459b52 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,27 +18,27 @@ ci: # hooks repos: -# - repo: https://github.com/pre-commit/pre-commit-hooks -# rev: v5.0.0 -# hooks: -# - id: end-of-file-fixer -# exclude: ^.*\.(svg)$ -# - id: debug-statements -# - id: check-yaml -# name: Check YAML -# - id: check-toml -# name: Check TOML -# - id: trailing-whitespace -# args: [--markdown-linebreak-ext=md] -# -# - repo: https://github.com/PyCQA/isort -# rev: 5.13.2 -# hooks: -# - id: isort -# args: -# - --profile=black -# - --filter-files -# - --skip-gitignore + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: end-of-file-fixer + exclude: ^.*\.(svg)$ + - id: debug-statements + - id: check-yaml + name: Check YAML + - id: check-toml + name: Check TOML + - id: trailing-whitespace + args: [--markdown-linebreak-ext=md] + + - repo: https://github.com/PyCQA/isort + rev: 5.13.2 + hooks: + - id: isort + args: + - --profile=black + - --filter-files + - --skip-gitignore - repo: https://github.com/psf/black rev: 24.10.0 @@ -46,49 +46,49 @@ repos: - id: black args: [--line-length=79] -# - repo: https://github.com/PyCQA/bandit -# rev: 1.7.10 -# hooks: -# - id: bandit -# args: ["-r"] -# files: ^tripper/.*$ -# -# - repo: https://github.com/pre-commit/mirrors-mypy -# rev: v1.11.2 -# hooks: -# - id: mypy -# exclude: ^tests/.*$ -# additional_dependencies: -# - "types-requests" -# - "pydantic" -# -# - repo: https://github.com/SINTEF/ci-cd -# rev: v2.8.2 -# hooks: -# - id: docs-api-reference -# args: -# - --package-dir=tripper -# - id: docs-landing-page + - repo: https://github.com/PyCQA/bandit + rev: 1.7.10 + hooks: + - id: bandit + args: ["-r"] + files: ^tripper/.*$ -# - repo: local -# hooks: -# - id: pylint -# name: pylint -# entry: pylint -# args: -# - --rcfile=pyproject.toml -# language: python -# types: [python] -# require_serial: true -# files: ^.*$ -# exclude: ^tests/.*$ -# - id: pylint-tests -# name: pylint - tests -# entry: pylint -# args: -# - "--rcfile=pyproject.toml" -# - "--disable=import-outside-toplevel,redefined-outer-name" -# language: python -# types: [python] -# require_serial: true -# files: ^tests/.*$ + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.11.2 + hooks: + - id: mypy + exclude: ^tests/.*$ + additional_dependencies: + - "types-requests" + - "pydantic" + + - repo: https://github.com/SINTEF/ci-cd + rev: v2.8.2 + hooks: + - id: docs-api-reference + args: + - --package-dir=tripper + - id: docs-landing-page + + - repo: local + hooks: + - id: pylint + name: pylint + entry: pylint + args: + - --rcfile=pyproject.toml + language: python + types: [python] + require_serial: true + files: ^.*$ + exclude: ^tests/.*$ + - id: pylint-tests + name: pylint - tests + entry: pylint + args: + - "--rcfile=pyproject.toml" + - "--disable=import-outside-toplevel,redefined-outer-name" + language: python + types: [python] + require_serial: true + files: ^tests/.*$