From 998ab36785b8cbf74154b38055492a77aa9e5098 Mon Sep 17 00:00:00 2001 From: rgaudin Date: Mon, 23 Sep 2024 09:45:42 +0000 Subject: [PATCH] upating pyright and restoring its precommit --- .pre-commit-config.yaml | 22 +++++++++++----------- pyproject.toml | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bc4fa53..0f0bad0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,14 +14,14 @@ repos: rev: v0.6.3 hooks: - id: ruff -# - repo: https://github.com/RobertCraigie/pyright-python -# rev: v1.1.379 -# hooks: -# - id: pyright -# name: pyright (system) -# description: 'pyright static type checker' -# entry: pyright -# language: system -# 'types_or': [python, pyi] -# require_serial: true -# minimum_pre_commit_version: '2.9.2' +- repo: https://github.com/RobertCraigie/pyright-python + rev: v1.1.381 + hooks: + - id: pyright + name: pyright (system) + description: 'pyright static type checker' + entry: pyright + language: system + 'types_or': [python, pyi] + require_serial: true + minimum_pre_commit_version: '2.9.2' diff --git a/pyproject.toml b/pyproject.toml index a420591..eb9a1f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ lint = [ "libzim[build]", ] check = [ - "pyright==1.1.379", + "pyright==1.1.381", "libzim", "libzim[build]", "libzim[test]",