From 83297b3f1ec2a9f1f66a498bfe78e5a0dc3cdf09 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Mon, 2 Oct 2023 22:06:37 +0200 Subject: [PATCH] Revert "Bump pre-commit hooks" This reverts commit 8a029400e726a63f620e8df09048eb1bb0c7db73. --- .pre-commit-config.yaml | 12 ++++++------ silkaj/money/transfer.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 30d71df0..f9fe6fea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,27 +11,27 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.292 + rev: v0.0.276 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 23.3.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.4.1 hooks: - id: mypy - repo: https://gitlab.com/devopshq/gitlab-ci-linter - rev: v1.0.6 + rev: v1.0.3 hooks: - id: gitlab-ci-linter args: - "--server" - "https://git.duniter.org" - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.4 + rev: v1.5.1 hooks: - id: insert-license files: \.py$ @@ -39,6 +39,6 @@ repos: - --license-filepath - license_header.txt - repo: https://github.com/executablebooks/mdformat - rev: 0.7.17 + rev: 0.7.16 hooks: - id: mdformat diff --git a/silkaj/money/transfer.py b/silkaj/money/transfer.py index 2be40de2..526cf47d 100644 --- a/silkaj/money/transfer.py +++ b/silkaj/money/transfer.py @@ -557,7 +557,7 @@ def generate_transaction_document( def generate_unlocks(listinput: List[InputSource]) -> List[Unlock]: unlocks = [] - for i in range(len(listinput)): + for i in range(0, len(listinput)): unlocks.append(Unlock(index=i, parameters=[SIGParameter(0)])) return unlocks -- GitLab