Skip to content

Commit

Permalink
Use rye instead of standalone commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Apr 25, 2024
1 parent 6c0d04e commit c026d60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c026d60

Please sign in to comment.