Skip to content

Commit

Permalink
chore: rye -> uv
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Aug 26, 2024
1 parent 0cdf1a7 commit 54e06a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ cython_debug/
# extra
.DS_Store

# rye
# uv
requirements.lock
requirements-dev.lock
requirements-dev.lock
uv.lock
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- hooks:
- id: sync-rye-pre-commit
- id: sync-uv-pre-commit
args:
- "-a ruff:ruff:v:"
- "-a ruff:ruff-format:v:"
repo: https://github.com/phi-friday/sync-rye-pre-commit
rev: v0.1.5
repo: https://github.com/phi-friday/sync-uv-pre-commit
rev: v0.1.0

- hooks:
- id: ruff
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ docs = [
"sphinx-mdinclude>=0.5.3",
]

[tool.rye]
[tool.uv]
managed = true
dev-dependencies = [
"ruff==0.5.7",
Expand All @@ -54,9 +54,9 @@ dev-dependencies = [
"async_wrapper[uvloop,sqlalchemy,test]",
]

[tool.rye.scripts]
html = { cmd = "make html" }
lint = { chain = ["lint:check", "lint:format"] }
[tool.poe.tasks]
html = "make html"
lint = ["lint:check", "lint:format"]
"lint:check" = "ruff check src tests --fix"
"lint:format" = "ruff format src tests"
check = "pre-commit run --all-files --show-diff-on-failure"
Expand Down

0 comments on commit 54e06a0

Please sign in to comment.