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"