From ffee3b1d99a04037ed1cb396da6a657222e99f18 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Thu, 19 Oct 2023 15:29:02 +0200 Subject: [PATCH] Update pre-commit --- .pre-commit-config.yaml | 10 +++++----- pyiceberg/conversions.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4a2682cdf..400232f140 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ exclude: ^vendor/ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -29,23 +29,23 @@ repos: - id: check-ast - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version (Used for linting) - rev: v0.0.291 + rev: v0.1.0 hooks: - id: ruff args: [ --fix, --exit-non-zero-on-fix ] - repo: https://github.com/ambv/black - rev: 23.9.1 + rev: 23.10.0 hooks: - id: black args: [--skip-string-normalization] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.6.1 hooks: - id: mypy args: [--install-types, --non-interactive, --config=pyproject.toml] - repo: https://github.com/hadialqattan/pycln - rev: v2.2.2 + rev: v2.3.0 hooks: - id: pycln args: [--config=pyproject.toml] diff --git a/pyiceberg/conversions.py b/pyiceberg/conversions.py index aecd43a949..72fb0b5ab1 100644 --- a/pyiceberg/conversions.py +++ b/pyiceberg/conversions.py @@ -267,7 +267,7 @@ def _(primitive_type: DecimalType, value: Decimal) -> bytes: @singledispatch -def from_bytes(primitive_type: PrimitiveType, b: bytes) -> L: +def from_bytes(primitive_type: PrimitiveType, b: bytes) -> L: # type: ignore """Convert bytes to a built-in python value. Args: