Compare commits

7 Commits

Author SHA1 Message Date
19b79b26ff fix workflow 2025-11-09 10:54:53 +00:00
Marco D'Aleo
a67e31c65d chore: re-trigger release
chore: add new line to end of file core.py
2025-11-09 10:45:50 +00:00
9d4608bd34 add new line to end of file core.py 2025-11-09 10:44:48 +00:00
Marco D'Aleo
27468ae0d0 feat: prepare release cycle
feat: prepare release cycle
2025-11-09 10:35:52 +00:00
8b1d9a81a1 minor change to core.py 2025-11-09 10:34:46 +00:00
6eb3f5a210 Minor fix to inline documentation 2025-11-09 10:25:33 +00:00
Marco D'Aleo
9a64bef661 chore: trigger release
docs: remove end-of-the-file line in CONTRIBUTING.md
2025-11-09 10:10:44 +00:00
3 changed files with 4 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ name: Publish to PyPI
on:
push:
tags:
- "*"
- "v*"
jobs:
build-publish:

View File

@@ -1,6 +1,7 @@
{
"release-type": "python",
"package-name": "resrm",
"include-v-in-tag": true,
"changelog-sections": [
{ "type": "feat", "section": "Added", "hidden": false },
{ "type": "fix", "section": "Fixed", "hidden": false },

View File

@@ -244,7 +244,7 @@ def move_to_trash(path: Path, interactive: bool, force: bool, recursive: bool, p
print(f"Failed permanent delete: {e}")
return
# 🚫 Prevent non-root user deleting root-owned files
# Prevent non-root user deleting root-owned files
try:
st = path.stat()
if st.st_uid == 0 and os.geteuid() != 0:
@@ -253,7 +253,7 @@ def move_to_trash(path: Path, interactive: bool, force: bool, recursive: bool, p
except Exception:
pass
# 🧭 Detect which trash to use (based on file owner)
# Detect which trash to use (based on file owner)
try:
import pwd
owner_uid = path.stat().st_uid