From c026d60bc961ed5005aebebf63779b3d5aa1ca72 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Thu, 25 Apr 2024 10:08:49 +0200 Subject: [PATCH] Use rye instead of standalone commands --- .pre-commit-config.yaml | 17 +++++++++-------- pyproject.toml | 3 +++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 616eb829..7b1683bf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,8 +13,8 @@ repos: hooks: - id: ruff name: Ruff - entry: ruff - args: ["check", "--fix"] + entry: rye + args: ["lint"] types: [python] language: system - id: ruff format @@ -23,9 +23,10 @@ repos: args: [format] language: system types: [python] - - id: pyright - name: pyright - entry: pyright - language: system - types: [python] - pass_filenames: false + # - id: pyright + # name: pyright + # entry: rye + # language: system + # args: ["run", "type-check"] + # types: [python] + # pass_filenames: false diff --git a/pyproject.toml b/pyproject.toml index 5853cb2b..3bcb746d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,6 +90,9 @@ dev-dependencies = [ "pre-commit>=3.7.0", ] +[tool.rye.scripts] +type-check = "pyright" + [build-system] requires = ["hatchling"] build-backend = "hatchling.build"