diff --git a/.gitignore b/.gitignore index 4cdfbbf..f09324d 100644 --- a/.gitignore +++ b/.gitignore @@ -263,4 +263,7 @@ $RECYCLE.BIN/ requirements.lock requirements-dev.lock +# uv +uv.lock + # End of https://www.toptal.com/developers/gitignore/api/python,venv,windows,macos,linux diff --git a/README.md b/README.md index 0109ba4..2c4695c 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ This is fork of **[Cryolite's majsoul-rpa](https://github.com/Cryolite/majsoul-r ![remote](./docs/remote.png) -## Install +## Installation ```sh majsoulrpa$ pip install . diff --git a/pyproject.toml b/pyproject.toml index 8ca7e94..f06a778 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "majsoulrpa" -version = "0.0.5" +version = "0.0.6" description = "A Robotic Process Automation (RPA) framework for Mahjong Soul (雀魂)" authors = [ { name = "Apricot S." } @@ -18,7 +18,7 @@ classifiers = [ ] dependencies = [ "imapclient>=3.0.1,<4", - "mitmproxy>=10.3.0,<11", + "mitmproxy>=11.0.0,<12", "opencv-python>=4.9.0.80,<5", "playwright>=1.40.0,<2", "protobuf>=5.26.1,<6", @@ -37,11 +37,11 @@ majsoulrpa_remote_browser = "majsoulrpa.remote_browser._remote_browser:main" requires = ["hatchling"] build-backend = "hatchling.build" -[tool.rye] +[tool.uv] managed = true dev-dependencies = [ "mypy>=1.8.0,<2", - "ruff>=0.5.0,<0.6", + "ruff>=0.6.0,<0.7", "types-protobuf>=5.26.0.20240422,<6", "types-jsonschema>=4.20.0.0,<5", "boto3-stubs[s3]>=1.34.11,<2", @@ -89,5 +89,13 @@ ignore-overlong-task-comments = true convention = "google" [tool.ruff.lint.extend-per-file-ignores] -"./examples/*" = ["S101", "INP001", "T201", "TRY004"] -"./tests/*" = ["S101", "SLF001"] +"./examples/*" = [ + "S101", # assert + "INP001", # implicit-namespace-package + "T201", # print + "TRY004", # type-check-without-type-error +] +"./tests/*" = [ + "S101", # assert + "SLF001" # private-member-access +] diff --git a/src/majsoulrpa/_version.py b/src/majsoulrpa/_version.py index 8e22d58..3065687 100644 --- a/src/majsoulrpa/_version.py +++ b/src/majsoulrpa/_version.py @@ -1 +1 @@ -__version__ = "0.0.5" +__version__ = "0.0.6"