-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
115 lines (102 loc) · 2.6 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[project]
name = "majsoulrpa"
version = "0.0.7"
description = "A Robotic Process Automation (RPA) framework for Mahjong Soul (雀魂)"
authors = [
{ name = "Apricot S." },
]
license = { text = "MIT License" }
readme = "README.md"
requires-python = ">= 3.11"
keywords = ["mahjong", "Mahjong Soul", "Majsoul", "automation", "RPA"]
classifiers = [
"Private :: Do Not Upload",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"imapclient>=3.0.1,<4",
"mitmproxy>=11.0.0,<12",
"opencv-python>=4.9.0.80,<5",
"playwright>=1.40.0,<2",
"protobuf>=5.26.1,<6",
"jsonschema>=4.20.0,<5",
"boto3>=1.34.11,<2",
"pyzmq>=26.0.0,<27",
"referencing>=0.35.0,<0.36",
"numpy>=2.0.0,<3",
"wsproto>=1.2.0,<2",
]
[project.scripts]
majsoulrpa_remote_browser = "majsoulrpa.remote_browser._remote_browser:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
{ include-group = "lint" },
{ include-group = "test" },
{ include-group = "typing" },
]
lint = [
"ruff>=0.7.0,<0.8",
]
test = [
"pytest>=8.0.1,<9",
]
typing = [
"mypy>=1.12.1,<2",
"types-protobuf>=5.26.0.20240422,<6",
"types-jsonschema>=4.20.0.0,<5",
"boto3-stubs[s3]>=1.34.11,<2",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/majsoulrpa"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
target-version = "py311"
src = ["src"]
extend-exclude = ["src/majsoulrpa/_impl/protobuf_liqi"]
line-length = 79
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D", # pydocstyle
# "C901", # complex-structure
"ANN002", # missing-type-args
"ANN003", # missing-type-kwargs
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"TD002", # missing-todo-author
"TD003", # missing-todo-link
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0915", # too-many-statements
]
[tool.ruff.lint.pycodestyle]
max-doc-length = 72
ignore-overlong-task-comments = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.extend-per-file-ignores]
"./examples/*" = [
"S101", # assert
"INP001", # implicit-namespace-package
"T201", # print
"TRY004", # type-check-without-type-error
]
"./tests/*" = [
"S101", # assert
"SLF001", # private-member-access
]
[tool.mypy]
exclude = [
'liqi_pb2\.py$',
'liqi_pb2\.pyi$',
]