Files
android-assistant/pyproject.toml
T
JMR-devandClaude Opus 4.8 8020bede3a Fix duplicate DialogManager methods and make tooling Python 3.14-aware
DialogManager defined show_transfer_stats and show_disable_debugging_reminder
twice; the later definitions silently shadowed the earlier ones. The live
show_transfer_stats(self, stats, operation) accepted only two arguments, but
TransferManager passed a third (deduplicator), raising TypeError inside the Tk
after() callback so the transfer-stats window never appeared after folder
transfers. The shadowed copies were also dead: they indexed stats keys
(bytes_saved/total_files/...) that the *_with_dedup TODO stubs never produce,
so they would have KeyError'd on the real {"message": ...} payload.

- Remove the dead, shadowed copies of both methods
- Drop the unused deduplicator argument at the caller (transfer_manager)
- Annotate the surviving methods with -> None

Also align linting/type config with the existing >=3.13,<3.15 support that CI
already exercises: black now targets py313+py314, and CLAUDE.md documents
3.13/3.14. mypy stays pinned to the 3.13 floor (the oldest supported runtime).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 21:30:27 -05:00

60 lines
1.3 KiB
TOML

[project]
name = "android_file_handler"
version = "0.1.1"
description = "An Android file transfer util for Windows and Linux. MacOS support may be added later."
authors = [
{ name = "Jason Ross", email = "51939451+JMR-dev@users.noreply.github.com" },
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.13, <3.15"
dependencies = ["requests>=2.32.4,<3.0.0", "platformdirs>4.0.0,<5.0.0"]
[tool.poetry.dependencies]
python = ">=3.13, <3.15"
requests = "^2.32.5"
platformdirs = "^4.5.0"
urllib3 = "^2.0"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[project.scripts]
# Main application entry point
android-file-handler = "src.main:main"
[tool.poetry.group.dev.dependencies]
black = "^26.3.1"
flake8 = "^7.3.0"
mypy = "^1.18.2"
pre-commit = "^4.3.0"
[tool.poetry.group.test.dependencies]
pytest = "^9.0.2"
pytest-mock = "^3.15.1"
pytest-cov = "^7.0.0"
[tool.poetry.group.build.dependencies]
pyinstaller = "^6.1.0"
[tool.black]
line-length = 88
target-version = ['py313', 'py314']
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[tool.poetry]
package-mode = false
[tool.setuptools.packages.find]
where = ["src"] # or wherever your source code lives
[tool.setuptools.package-dir]
"" = "src" # if using src layout