unlatch 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. unlatch-0.1.0/LICENSE +21 -0
  2. unlatch-0.1.0/PKG-INFO +137 -0
  3. unlatch-0.1.0/README.md +107 -0
  4. unlatch-0.1.0/pyproject.toml +287 -0
  5. unlatch-0.1.0/pyproject.toml.orig +167 -0
  6. unlatch-0.1.0/src/unlatch/__init__.py +14 -0
  7. unlatch-0.1.0/src/unlatch/__main__.py +82 -0
  8. unlatch-0.1.0/src/unlatch/assets/unlatch.ico +0 -0
  9. unlatch-0.1.0/src/unlatch/assets/unlatch.svg +8 -0
  10. unlatch-0.1.0/src/unlatch/cli.py +136 -0
  11. unlatch-0.1.0/src/unlatch/commands.py +162 -0
  12. unlatch-0.1.0/src/unlatch/core/__init__.py +1 -0
  13. unlatch-0.1.0/src/unlatch/core/actions.py +137 -0
  14. unlatch-0.1.0/src/unlatch/core/finder.py +107 -0
  15. unlatch-0.1.0/src/unlatch/core/handle_table.py +156 -0
  16. unlatch-0.1.0/src/unlatch/core/instances.py +70 -0
  17. unlatch-0.1.0/src/unlatch/core/matching.py +137 -0
  18. unlatch-0.1.0/src/unlatch/core/watchdog.py +152 -0
  19. unlatch-0.1.0/src/unlatch/engine.py +50 -0
  20. unlatch-0.1.0/src/unlatch/exceptions.py +23 -0
  21. unlatch-0.1.0/src/unlatch/gui/__init__.py +1 -0
  22. unlatch-0.1.0/src/unlatch/gui/app.py +112 -0
  23. unlatch-0.1.0/src/unlatch/gui/instance.py +125 -0
  24. unlatch-0.1.0/src/unlatch/gui/prompts.py +37 -0
  25. unlatch-0.1.0/src/unlatch/gui/scanner.py +93 -0
  26. unlatch-0.1.0/src/unlatch/gui/window.py +700 -0
  27. unlatch-0.1.0/src/unlatch/models.py +129 -0
  28. unlatch-0.1.0/src/unlatch/native/__init__.py +1 -0
  29. unlatch-0.1.0/src/unlatch/native/elevation.py +47 -0
  30. unlatch-0.1.0/src/unlatch/native/handles.py +237 -0
  31. unlatch-0.1.0/src/unlatch/native/modules.py +116 -0
  32. unlatch-0.1.0/src/unlatch/native/processes.py +72 -0
  33. unlatch-0.1.0/src/unlatch/native/shell.py +106 -0
  34. unlatch-0.1.0/src/unlatch/native/win32.py +195 -0
  35. unlatch-0.1.0/src/unlatch/output.py +82 -0
  36. unlatch-0.1.0/src/unlatch/py.typed +0 -0
  37. unlatch-0.1.0/src/unlatch/targets.py +40 -0
unlatch-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mike Hill
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
unlatch-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,137 @@
1
+ Metadata-Version: 2.4
2
+ Name: unlatch
3
+ Version: 0.1.0
4
+ Summary: See which processes hold a file or folder on Windows, and free it.
5
+ Keywords: file-lock,locksmith,handles,windows,explorer,unlock
6
+ Author: Mike Hill
7
+ Author-email: Mike Hill <mike@mikejhill.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Environment :: Win32 (MS Windows)
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: End Users/Desktop
14
+ Classifier: Intended Audience :: System Administrators
15
+ Classifier: Operating System :: Microsoft :: Windows
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Topic :: System :: Filesystems
21
+ Classifier: Topic :: Utilities
22
+ Requires-Dist: psutil>=7.2.2
23
+ Requires-Dist: pyside6-essentials>=6.12.0
24
+ Requires-Python: >=3.13
25
+ Project-URL: Homepage, https://github.com/mikejhill/unlatch
26
+ Project-URL: Documentation, https://github.com/mikejhill/unlatch#readme
27
+ Project-URL: Changelog, https://github.com/mikejhill/unlatch/blob/main/CHANGELOG.md
28
+ Project-URL: Issues, https://github.com/mikejhill/unlatch/issues
29
+ Description-Content-Type: text/markdown
30
+
31
+ # Unlatch
32
+
33
+ <picture>
34
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mikejhill/unlatch/main/docs/brand/wordmark-dark.png">
35
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/mikejhill/unlatch/main/docs/brand/wordmark-light.png">
36
+ <img
37
+ src="https://raw.githubusercontent.com/mikejhill/unlatch/main/docs/brand/wordmark-light.png"
38
+ alt="Unlatch" width="280">
39
+ </picture>
40
+
41
+ [![CI](https://github.com/mikejhill/unlatch/actions/workflows/ci.yml/badge.svg)](https://github.com/mikejhill/unlatch/actions/workflows/ci.yml)
42
+ [![Release](https://img.shields.io/github/v/release/mikejhill/unlatch)](https://github.com/mikejhill/unlatch/releases)
43
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/mikejhill/unlatch/blob/main/LICENSE)
44
+
45
+ "The action can't be completed because the file is open in another program."
46
+ Unlatch tells you which program, and lets it go.
47
+
48
+ Right-click a file or folder, choose **What's holding this?**, and Unlatch
49
+ lists every process that has it open, has a working directory inside it, or
50
+ has it loaded as a program or DLL. End the process in one click, or, as an
51
+ advanced step, close just the handle that blocks you.
52
+
53
+ ![The Unlatch window listing two programs that hold a document: one with an open handle and one with it loaded as a module](https://raw.githubusercontent.com/mikejhill/unlatch/main/docs/images/window.png)
54
+
55
+ ## Features
56
+
57
+ - **Finds every kind of hold**: open file and folder handles, working
58
+ directories, loaded DLLs, and program files, for a file, a folder and
59
+ everything inside it, or several items at once.
60
+ - **Explorer integration**: a per-user **What's holding this?** entry for
61
+ files, folders, folder backgrounds, and drives. Selecting several items opens
62
+ one window.
63
+ - **Safe actions**: before ending a process or closing a handle, Unlatch checks
64
+ that the PID and handle still belong to what you saw, so a stale row never
65
+ ends an unrelated program.
66
+ - **Honest about blind spots**: when not elevated it says how many processes
67
+ it could not inspect and offers **Restart as administrator**.
68
+ - **Scriptable**: `unlatch scan --json`, `unlatch check` (exit code 3 when
69
+ held), `unlatch kill`, and `unlatch release`.
70
+ - **Fast**: one read of the system handle table, filtered before any expensive
71
+ call; a typical scan takes well under a second.
72
+
73
+ Unlatch fills the same need as Microsoft PowerToys File Locksmith. It is an
74
+ independent Python implementation that installs on its own.
75
+
76
+ ## Install
77
+
78
+ Requires Windows 10 or later and Python 3.13 or later.
79
+
80
+ ```powershell
81
+ uv tool install git+https://github.com/mikejhill/unlatch
82
+ ```
83
+
84
+ Wheels are also attached to each [GitHub release](https://github.com/mikejhill/unlatch/releases)
85
+ (`uv tool install <wheel URL>`). Then add the Explorer menu entry:
86
+
87
+ ```powershell
88
+ unlatch shell install
89
+ ```
90
+
91
+ On Windows 11 the entry is under **Show more options** (Shift+F10), like other
92
+ classic menu entries. `unlatch shell uninstall` removes it.
93
+
94
+ ## Use
95
+
96
+ | Do this | Run |
97
+ | --- | --- |
98
+ | Open the window | `unlatch` or `unlatch-gui` (no console) |
99
+ | Open the window on paths | `unlatch gui C:\path\file.txt C:\path\folder` |
100
+ | List holders | `unlatch scan C:\path\file.txt` |
101
+ | List holders as JSON | `unlatch scan --json C:\path\folder` |
102
+ | Test in a script | `unlatch check C:\path\file.txt` (0 free, 3 held, 1 error) |
103
+ | End every holder | `unlatch kill C:\path\file.txt` (asks first; `--yes` to skip) |
104
+ | Close the blocking handles only | `unlatch release C:\path\file.txt` (asks first) |
105
+
106
+ In the window: **F5** scans again, **Delete** ends the selected process,
107
+ **Ctrl+F** filters, **Ctrl+C** copies details, and right-click offers **Open
108
+ file location** and **Release handle**. Drop files or folders onto the window
109
+ to add them.
110
+
111
+ Closing a handle without ending its program is the advanced option: the
112
+ program is not told, so it may lose data or crash. Ending the process is the
113
+ safer choice.
114
+
115
+ ## Limits
116
+
117
+ - Without administrator rights, processes of other users and elevated
118
+ processes are not visible. Unlatch counts them and offers to restart
119
+ elevated.
120
+ - Kernel-mode handles (including files opened by other computers over SMB,
121
+ which belong to the System process) and memory-mapped files whose handle was
122
+ closed are not reported.
123
+
124
+ ## Documentation
125
+
126
+ | Document | Contents |
127
+ | --- | --- |
128
+ | [Philosophy and architecture](docs/design/philosophy.md) | Purpose, principles, and how a hold is found |
129
+ | [UX contract](docs/design/ux-contract.md) | Promises the window keeps, each proven by a test |
130
+ | [Brand](docs/brand/README.md) | Name, icon, and asset rules |
131
+ | [Testing](docs/testing.md) | Test suites, markers, and mutation testing |
132
+ | [Releasing](docs/releasing.md) | How versions and releases are produced |
133
+ | [Contributing](CONTRIBUTING.md) | Setup and the quality gate |
134
+
135
+ ## License
136
+
137
+ MIT. See [LICENSE](LICENSE).
@@ -0,0 +1,107 @@
1
+ # Unlatch
2
+
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mikejhill/unlatch/main/docs/brand/wordmark-dark.png">
5
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/mikejhill/unlatch/main/docs/brand/wordmark-light.png">
6
+ <img
7
+ src="https://raw.githubusercontent.com/mikejhill/unlatch/main/docs/brand/wordmark-light.png"
8
+ alt="Unlatch" width="280">
9
+ </picture>
10
+
11
+ [![CI](https://github.com/mikejhill/unlatch/actions/workflows/ci.yml/badge.svg)](https://github.com/mikejhill/unlatch/actions/workflows/ci.yml)
12
+ [![Release](https://img.shields.io/github/v/release/mikejhill/unlatch)](https://github.com/mikejhill/unlatch/releases)
13
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/mikejhill/unlatch/blob/main/LICENSE)
14
+
15
+ "The action can't be completed because the file is open in another program."
16
+ Unlatch tells you which program, and lets it go.
17
+
18
+ Right-click a file or folder, choose **What's holding this?**, and Unlatch
19
+ lists every process that has it open, has a working directory inside it, or
20
+ has it loaded as a program or DLL. End the process in one click, or, as an
21
+ advanced step, close just the handle that blocks you.
22
+
23
+ ![The Unlatch window listing two programs that hold a document: one with an open handle and one with it loaded as a module](https://raw.githubusercontent.com/mikejhill/unlatch/main/docs/images/window.png)
24
+
25
+ ## Features
26
+
27
+ - **Finds every kind of hold**: open file and folder handles, working
28
+ directories, loaded DLLs, and program files, for a file, a folder and
29
+ everything inside it, or several items at once.
30
+ - **Explorer integration**: a per-user **What's holding this?** entry for
31
+ files, folders, folder backgrounds, and drives. Selecting several items opens
32
+ one window.
33
+ - **Safe actions**: before ending a process or closing a handle, Unlatch checks
34
+ that the PID and handle still belong to what you saw, so a stale row never
35
+ ends an unrelated program.
36
+ - **Honest about blind spots**: when not elevated it says how many processes
37
+ it could not inspect and offers **Restart as administrator**.
38
+ - **Scriptable**: `unlatch scan --json`, `unlatch check` (exit code 3 when
39
+ held), `unlatch kill`, and `unlatch release`.
40
+ - **Fast**: one read of the system handle table, filtered before any expensive
41
+ call; a typical scan takes well under a second.
42
+
43
+ Unlatch fills the same need as Microsoft PowerToys File Locksmith. It is an
44
+ independent Python implementation that installs on its own.
45
+
46
+ ## Install
47
+
48
+ Requires Windows 10 or later and Python 3.13 or later.
49
+
50
+ ```powershell
51
+ uv tool install git+https://github.com/mikejhill/unlatch
52
+ ```
53
+
54
+ Wheels are also attached to each [GitHub release](https://github.com/mikejhill/unlatch/releases)
55
+ (`uv tool install <wheel URL>`). Then add the Explorer menu entry:
56
+
57
+ ```powershell
58
+ unlatch shell install
59
+ ```
60
+
61
+ On Windows 11 the entry is under **Show more options** (Shift+F10), like other
62
+ classic menu entries. `unlatch shell uninstall` removes it.
63
+
64
+ ## Use
65
+
66
+ | Do this | Run |
67
+ | --- | --- |
68
+ | Open the window | `unlatch` or `unlatch-gui` (no console) |
69
+ | Open the window on paths | `unlatch gui C:\path\file.txt C:\path\folder` |
70
+ | List holders | `unlatch scan C:\path\file.txt` |
71
+ | List holders as JSON | `unlatch scan --json C:\path\folder` |
72
+ | Test in a script | `unlatch check C:\path\file.txt` (0 free, 3 held, 1 error) |
73
+ | End every holder | `unlatch kill C:\path\file.txt` (asks first; `--yes` to skip) |
74
+ | Close the blocking handles only | `unlatch release C:\path\file.txt` (asks first) |
75
+
76
+ In the window: **F5** scans again, **Delete** ends the selected process,
77
+ **Ctrl+F** filters, **Ctrl+C** copies details, and right-click offers **Open
78
+ file location** and **Release handle**. Drop files or folders onto the window
79
+ to add them.
80
+
81
+ Closing a handle without ending its program is the advanced option: the
82
+ program is not told, so it may lose data or crash. Ending the process is the
83
+ safer choice.
84
+
85
+ ## Limits
86
+
87
+ - Without administrator rights, processes of other users and elevated
88
+ processes are not visible. Unlatch counts them and offers to restart
89
+ elevated.
90
+ - Kernel-mode handles (including files opened by other computers over SMB,
91
+ which belong to the System process) and memory-mapped files whose handle was
92
+ closed are not reported.
93
+
94
+ ## Documentation
95
+
96
+ | Document | Contents |
97
+ | --- | --- |
98
+ | [Philosophy and architecture](docs/design/philosophy.md) | Purpose, principles, and how a hold is found |
99
+ | [UX contract](docs/design/ux-contract.md) | Promises the window keeps, each proven by a test |
100
+ | [Brand](docs/brand/README.md) | Name, icon, and asset rules |
101
+ | [Testing](docs/testing.md) | Test suites, markers, and mutation testing |
102
+ | [Releasing](docs/releasing.md) | How versions and releases are produced |
103
+ | [Contributing](CONTRIBUTING.md) | Setup and the quality gate |
104
+
105
+ ## License
106
+
107
+ MIT. See [LICENSE](LICENSE).
@@ -0,0 +1,287 @@
1
+ [project]
2
+ name = "unlatch"
3
+ version = "0.1.0"
4
+ description = "See which processes hold a file or folder on Windows, and free it."
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ requires-python = ">=3.13"
9
+ keywords = [
10
+ "file-lock",
11
+ "locksmith",
12
+ "handles",
13
+ "windows",
14
+ "explorer",
15
+ "unlock",
16
+ ]
17
+ classifiers = [
18
+ "Development Status :: 4 - Beta",
19
+ "Environment :: Win32 (MS Windows)",
20
+ "Environment :: Console",
21
+ "Intended Audience :: End Users/Desktop",
22
+ "Intended Audience :: System Administrators",
23
+ "Operating System :: Microsoft :: Windows",
24
+ "Programming Language :: Python :: 3",
25
+ "Programming Language :: Python :: 3 :: Only",
26
+ "Programming Language :: Python :: 3.13",
27
+ "Programming Language :: Python :: 3.14",
28
+ "Topic :: System :: Filesystems",
29
+ "Topic :: Utilities",
30
+ ]
31
+ dependencies = [
32
+ "psutil>=7.2.2",
33
+ "pyside6-essentials>=6.12.0",
34
+ ]
35
+
36
+ [[project.authors]]
37
+ name = "Mike Hill"
38
+ email = "mike@mikejhill.com"
39
+
40
+ [project.urls]
41
+ Homepage = "https://github.com/mikejhill/unlatch"
42
+ Documentation = "https://github.com/mikejhill/unlatch#readme"
43
+ Changelog = "https://github.com/mikejhill/unlatch/blob/main/CHANGELOG.md"
44
+ Issues = "https://github.com/mikejhill/unlatch/issues"
45
+
46
+ [project.scripts]
47
+ unlatch = "unlatch.__main__:Application.main"
48
+
49
+ [project.gui-scripts]
50
+ unlatch-gui = "unlatch.__main__:Application.gui_main"
51
+
52
+ [build-system]
53
+ requires = ["uv_build>=0.13.9,<0.14.0"]
54
+ build-backend = "uv_build"
55
+
56
+ [dependency-groups]
57
+ dev = [
58
+ "hypothesis>=6.170.23",
59
+ "poethepoet>=0.49.0",
60
+ "pytest>=9.2.0",
61
+ "pytest-cov>=7.1.0",
62
+ "pytest-qt>=4.5.0",
63
+ "pytest-randomly>=5.1.0",
64
+ "pytest-timeout>=2.4.0",
65
+ "ruff>=0.17.6",
66
+ "ty>=0.0.112",
67
+ ]
68
+ mutation = ["mutmut>=3.8.1"]
69
+
70
+ [tool.ruff]
71
+ target-version = "py313"
72
+ line-length = 88
73
+ src = [
74
+ "src",
75
+ "tests",
76
+ ]
77
+
78
+ [tool.ruff.lint]
79
+ select = [
80
+ "A",
81
+ "ANN",
82
+ "ARG",
83
+ "B",
84
+ "BLE",
85
+ "C4",
86
+ "C90",
87
+ "D",
88
+ "DTZ",
89
+ "E",
90
+ "ERA",
91
+ "F",
92
+ "FA",
93
+ "FBT",
94
+ "G",
95
+ "I",
96
+ "LOG",
97
+ "N",
98
+ "PERF",
99
+ "PGH",
100
+ "PIE",
101
+ "PL",
102
+ "PT",
103
+ "PTH",
104
+ "RET",
105
+ "RSE",
106
+ "RUF",
107
+ "S",
108
+ "SIM",
109
+ "T20",
110
+ "TID",
111
+ "TRY",
112
+ "UP",
113
+ "W",
114
+ ]
115
+ ignore = [
116
+ "D107",
117
+ "TRY003",
118
+ ]
119
+
120
+ [tool.ruff.lint.per-file-ignores]
121
+ "tests/**" = [
122
+ "S101",
123
+ "PLR2004",
124
+ "S603",
125
+ "PLC0415",
126
+ ]
127
+ "src/unlatch/native/win32.py" = ["N815"]
128
+
129
+ [tool.ruff.lint.pep8-naming]
130
+ extend-ignore-names = [
131
+ "dragEnterEvent",
132
+ "dropEvent",
133
+ "closeEvent",
134
+ ]
135
+
136
+ [tool.ruff.lint.isort]
137
+ known-first-party = [
138
+ "unlatch",
139
+ "tests",
140
+ "scripts",
141
+ ]
142
+
143
+ [tool.ruff.lint.pydocstyle]
144
+ convention = "google"
145
+
146
+ [tool.ruff.lint.flake8-tidy-imports]
147
+ ban-relative-imports = "all"
148
+
149
+ [tool.ruff.lint.mccabe]
150
+ max-complexity = 10
151
+
152
+ [tool.ruff.format]
153
+ docstring-code-format = true
154
+
155
+ [tool.ty.environment]
156
+ python-platform = "win32"
157
+
158
+ [tool.ty.rules]
159
+ all = "error"
160
+
161
+ [tool.pytest.ini_options]
162
+ testpaths = ["tests"]
163
+ pythonpath = ["."]
164
+ addopts = [
165
+ "--strict-markers",
166
+ "--strict-config",
167
+ "-ra",
168
+ "--import-mode=importlib",
169
+ ]
170
+ xfail_strict = true
171
+ qt_api = "pyside6"
172
+ timeout = 120
173
+ markers = [
174
+ "native: needs Windows; exercises real Windows APIs and processes",
175
+ "e2e: end-to-end test through the installed entry points",
176
+ "perf: performance budget test",
177
+ "ux: user journey test proving a UX contract item",
178
+ ]
179
+
180
+ [tool.coverage.run]
181
+ source = ["unlatch"]
182
+ branch = true
183
+
184
+ [tool.coverage.report]
185
+ fail_under = 90
186
+ show_missing = true
187
+ skip_covered = true
188
+ exclude_also = ["if __name__ == .__main__.:"]
189
+
190
+ [tool.poe.tasks.format]
191
+ cmd = "ruff format ."
192
+ help = "Format code"
193
+
194
+ [tool.poe.tasks.format-check]
195
+ cmd = "ruff format --check ."
196
+ help = "Check formatting"
197
+
198
+ [tool.poe.tasks.lint]
199
+ cmd = "ruff check ."
200
+ help = "Lint code"
201
+
202
+ [tool.poe.tasks.lint-fix]
203
+ cmd = "ruff check . --fix"
204
+ help = "Lint and auto-fix"
205
+
206
+ [tool.poe.tasks.typecheck]
207
+ cmd = "ty check"
208
+ help = "Type check (strict)"
209
+
210
+ [tool.poe.tasks.test]
211
+ cmd = 'pytest --cov -m "not perf"'
212
+ help = "Run every test except performance budgets, with coverage"
213
+
214
+ [tool.poe.tasks.unit]
215
+ cmd = "pytest tests/unit"
216
+ help = "Run the portable unit tests only"
217
+
218
+ [tool.poe.tasks.integration]
219
+ cmd = "pytest tests/integration"
220
+ help = "Run Windows integration tests"
221
+
222
+ [tool.poe.tasks.e2e]
223
+ cmd = "pytest tests/e2e"
224
+ help = "Run end-to-end tests"
225
+
226
+ [tool.poe.tasks.perf]
227
+ cmd = "pytest tests/perf -p no:randomly"
228
+ help = "Run performance budgets (without coverage, which slows Python)"
229
+
230
+ [tool.poe.tasks.ux]
231
+ cmd = "pytest tests/ux"
232
+ help = "Run UX journey tests"
233
+
234
+ [tool.poe.tasks.ux-snapshots]
235
+ cmd = "pytest tests/ux --ux-snapshots=docs/ux/snapshots"
236
+ help = "Run UX journeys and save a PNG per step"
237
+
238
+ [tool.poe.tasks.brand]
239
+ cmd = "python scripts/render_brand.py"
240
+ help = "Regenerate brand PNG and ICO exports from docs/brand/icon.svg"
241
+
242
+ [tool.poe.tasks.mutate]
243
+ shell = "mutmut run; mutmut results --all true > mutants/results.txt; python scripts/mutation_report.py mutants/results.txt"
244
+ help = "Mutation testing (Linux or WSL; uv run --group mutation poe mutate)"
245
+
246
+ [tool.poe.tasks.mutate.env]
247
+ HYPOTHESIS_PROFILE = "mutation"
248
+
249
+ [tool.poe.tasks.lint-workflows]
250
+ shell = "uvx --from actionlint-py actionlint && uvx zizmor --offline .github/workflows"
251
+ help = "Lint GitHub Actions workflows (actionlint + zizmor)"
252
+
253
+ [tool.poe.tasks.fix]
254
+ sequence = [
255
+ "format",
256
+ "lint-fix",
257
+ ]
258
+ help = "Auto-fix formatting and lint"
259
+
260
+ [tool.poe.tasks.check]
261
+ sequence = [
262
+ "format-check",
263
+ "lint",
264
+ "typecheck",
265
+ "test",
266
+ "perf",
267
+ ]
268
+ help = "Run every quality gate"
269
+
270
+ [tool.mutmut]
271
+ source_paths = ["src/unlatch/"]
272
+ only_mutate = [
273
+ "src/unlatch/core/*",
274
+ "src/unlatch/models.py",
275
+ "src/unlatch/output.py",
276
+ "src/unlatch/cli.py",
277
+ "src/unlatch/commands.py",
278
+ ]
279
+ also_copy = ["scripts/"]
280
+ pytest_add_cli_args_test_selection = ["tests/unit/"]
281
+ pytest_add_cli_args = [
282
+ "-p",
283
+ "no:randomly",
284
+ "-p",
285
+ "no:cacheprovider",
286
+ ]
287
+ mutate_only_covered_lines = true