From 95ac53a2d843300511f268408753bf75fe4d2fe3 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Mon, 2 Oct 2023 20:52:23 +0200 Subject: [PATCH] Bump pre-commit hooks: Ruff Specially for Ruff v0.0.292 Do not bump Lucas-C/pre-commit-hooks Since further releases v1.5.2 requires pre-commit v3.2.0 https://github.com/Lucas-C/pre-commit-hooks/issues/83 https://github.com/Lucas-C/pre-commit-hooks/releases not yet available in Debian Bookworm (12) https://repology.org/badge/vertical-allrepos/python:pre-commit.svg Would need to install pre-commit from PyPI on the image https://git.duniter.org/docker/python3/poetry/-/blob/773e7ee716307cf1ca50e507fff3bd70c94943c4/3.11/Dockerfile#L5 --- .pre-commit-config.yaml | 10 +++++----- silkaj/money/transfer.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f9fe6fea..4f81d081 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,20 +11,20 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.276 + rev: v0.0.292 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.9.1 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.4.1 + rev: v1.5.1 hooks: - id: mypy - repo: https://gitlab.com/devopshq/gitlab-ci-linter - rev: v1.0.3 + rev: v1.0.6 hooks: - id: gitlab-ci-linter args: @@ -39,6 +39,6 @@ repos: - --license-filepath - license_header.txt - repo: https://github.com/executablebooks/mdformat - rev: 0.7.16 + rev: 0.7.17 hooks: - id: mdformat diff --git a/silkaj/money/transfer.py b/silkaj/money/transfer.py index 526cf47d..2be40de2 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(0, len(listinput)): + for i in range(len(listinput)): unlocks.append(Unlock(index=i, parameters=[SIGParameter(0)])) return unlocks -- GitLab