Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Nov 25, 2024
1 parent 5bcc76e commit 83253c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/format_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Format and Test Code with Rye
name: Format and test code with uv

on:
push:
Expand Down
22 changes: 4 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,6 @@ packages = [
"pyrogram"
]

[tool.rye]
managed = true
dev-dependencies = [
"ruff",
"pytest",
"pytest-asyncio",
"pytest-cov",
"twine",
"pre-commit",
]

[tool.rye.scripts]
clean = { chain = ["clean:api"] }
"clean:api" = { cmd = "rm -rf pyrogram/errors/exceptions pyrogram/raw/all.py pyrogram/raw/base pyrogram/raw/functions pyrogram/raw/types" }
api = { chain = ["api:raw", "api:errors"] }
"api:raw" = { call = "compiler.api.compiler:start" }
"api:errors" = { call = "compiler.errors.compiler:start" }

[tool.ruff]
fix = true
unsafe-fixes = true
Expand Down Expand Up @@ -115,6 +97,10 @@ select = [
"FA", # flake8-future-annotations
"PL", # pylint
"ARG", # flake8-unused-arguments
"C90", # mccabe
"ASYNC", # flake8-async
"B", # flake8-bugbear
"COM", # flake8-commas
]

ignore = [
Expand Down

0 comments on commit 83253c5

Please sign in to comment.