-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (126 loc) · 4.82 KB
/
Copy pathpyproject.toml
File metadata and controls
141 lines (126 loc) · 4.82 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# Rename to build stable version
# This is stable version
[build-system]
requires = ["setuptools>=82.0.1"]
build-backend = "setuptools.build_meta"
[project]
name = "je_auto_control"
version = "0.0.217"
authors = [
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
]
description = "GUI Automation Framework"
requires-python = ">=3.10"
license-files = ["LICENSE"]
dependencies = [
"je_open_cv==0.0.22",
# je_open_cv leaves opencv-python unpinned; bound the major so a new
# OpenCV release cannot silently change cv2 return shapes under us.
"opencv-python>=4.8,<6",
"pillow==12.3.0",
"pyobjc-core==12.2.1;platform_system=='Darwin'",
"pyobjc==12.2.1;platform_system=='Darwin'",
"python-Xlib==0.33;platform_system=='Linux'",
"mss==10.2.0",
"defusedxml==0.7.1",
"cryptography>=48.0.1"
]
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Development Status :: 2 - Pre-Alpha",
"Environment :: Win32 (MS Windows)",
"Environment :: MacOS X",
"Environment :: X11 Applications",
"Operating System :: OS Independent"
]
[project.scripts]
je_auto_control = "je_auto_control.cli:main"
je_auto_control_mcp = "je_auto_control.utils.mcp_server.__main__:main"
[project.entry-points.pytest11]
je_auto_control = "je_auto_control.utils.pytest_plugin.plugin"
[project.urls]
Homepage = "https://github.com/Intergration-Automation-Testing/AutoControl"
Documentation = "https://autocontrol.readthedocs.io/en/latest/"
Code = "https://github.com/Intergration-Automation-Testing/AutoControl"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[tool.setuptools.packages]
find = { namespaces = false }
[tool.setuptools.package-data]
"je_auto_control" = ["py.typed"]
"je_auto_control.utils.remote_desktop" = [
"web_viewer/*.html",
"web_viewer/*.js",
"web_viewer/*.svg",
"web_viewer/*.webmanifest",
"web_viewer/mic-worklet.js",
]
[project.optional-dependencies]
gui = ["PySide6==6.11.1", "qt-material==2.17"]
webrtc = ["aiortc>=1.14.0", "av>=14.0.0"]
signaling = ["fastapi>=0.115", "uvicorn>=0.32"]
discovery = ["zeroconf>=0.130"]
pdf = ["pypdf>=4.0"]
office = ["openpyxl>=3.1", "python-docx>=1.1", "python-pptx>=0.6"]
fuzzy = ["rapidfuzz>=3.0"]
s3 = ["boto3>=1.34"]
locale = ["babel>=2.12"]
audio = ["pycaw>=20240210"]
[tool.bandit]
exclude_dirs = [
"test", "docs", ".venv", "build", "dist",
# UI translation dicts — strings like "Token:" / "Bearer 權杖:" trip
# B105 (hardcoded-password) heuristics. They are not credentials and
# don't flow into any auth code; exclude wholesale.
"language_wrapper",
]
# B101 (use of assert) — pytest test code intentionally uses assert.
# Library code is enforced by CLAUDE.md (no assert in non-test code).
skips = ["B101"]
[tool.pytest.ini_options]
testpaths = ["test/unit_test/headless", "test/unit_test/flow_control"]
addopts = "--strict-markers --strict-config"
# Only test_*.py are real tests. The *_test.py files under test/unit_test/ are
# manual demo scripts whose module bodies drive the real mouse/keyboard; pytest's
# default python_files matches *_test.py, so collecting an explicit path (e.g.
# `pytest test/unit_test/`) would import and execute them. testpaths does not
# protect against this — it is ignored once a path argument is given.
python_files = ["test_*.py"]
[tool.coverage.run]
branch = true
source = ["je_auto_control"]
omit = ["*/gui/*", "*/language_wrapper/*"]
[tool.coverage.report]
show_missing = true
skip_covered = true
# Initial measured repository baseline. Raise toward 70 as legacy modules are
# brought under the stable API contract; CI enforces that it cannot regress.
fail_under = 35
[tool.mypy]
python_version = "3.10"
warn_redundant_casts = true
check_untyped_defs = true
no_implicit_optional = true
# CI type-checks only the stable API surface; followed legacy modules are
# analysed for signatures but not reported until they join the contract.
follow_imports = "silent"
exclude = "(^test/|^docs/|^build/)"
[[tool.mypy.overrides]]
module = ["cv2.*", "Xlib.*", "PySide6.*", "objc.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
# numpy's stubs use `type` statements, which mypy rejects while parsing under
# python_version 3.10 — skip them; the stable API does not expose numpy types.
# The top-level `numpy` module must be listed explicitly: `numpy.*` only matches
# submodules, so numpy>=2.5's PEP 695 statements in numpy/__init__.pyi would leak.
# `follow_imports_for_stubs` is required — otherwise `follow_imports = skip` is
# ignored for .pyi files and mypy parses (and chokes on) the numpy stub anyway.
module = ["numpy", "numpy.*"]
follow_imports = "skip"
follow_imports_for_stubs = true
ignore_missing_imports = true