From 54e06a06581d9648e8d867196507866590310ffa Mon Sep 17 00:00:00 2001 From: phi Date: Mon, 26 Aug 2024 23:45:21 +0900 Subject: [PATCH] chore: rye -> uv --- .gitignore | 5 +++-- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 8 ++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 08d2bc5..907c441 100644 --- a/.gitignore +++ b/.gitignore @@ -165,6 +165,7 @@ cython_debug/ # extra .DS_Store -# rye +# uv requirements.lock -requirements-dev.lock \ No newline at end of file +requirements-dev.lock +uv.lock \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bc7d70e..b2bc339 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index ac9e501..50d64f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ docs = [ "sphinx-mdinclude>=0.5.3", ] -[tool.rye] +[tool.uv] managed = true dev-dependencies = [ "ruff==0.5.7", @@ -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"