Repository navigation
Closed
Labels
Description
Summary
Leftovers from earlier designs that readers and tests still maintain.
Where
autoclicker/core/settings_manager.py:234(theme),:764-767(reset_to_defaults)autoclicker/utils/profiles.py:114-125(save_preset/load_preset)autoclicker/utils/coordinate_picker.pyautoclicker/core/click_engine.py:117-148,:382-396,:923-950autoclicker/app/hotkeys.py:25andautoclicker/core/settings_manager.py:240autoclicker.py:10-38,autoclicker/main.py:33-38
Details
- The
themesetting is never read (single dark palette). -
reset_to_defaultsand the point-onlyPresetManager.save_preset/load_presetare called only from tests and share names with different GUI methods. -
utils/coordinate_picker.pyis a deprecated alias ofutils/profileswhose name collides with the real picker; its tests live intest_coordinate_picker.py. Rename the test file and schedule removal for 2.0. -
get_status()["performance"]computes success rate, average click time and errors that only Copy diagnostics may use; confirm consumers and trim. - The default CPS ceiling 50 is hard-coded in about 8 places,
DEFAULT_HOTKEYSis duplicated as a literal inDEFAULT_SETTINGS, and the image margin 150 in 4 places; the "saved hotkeys or defaults" logic exists in bothmain_window.py:345-351andcli.py:282-285. -
autoclicker.pyrepeatsmain._show_dialogas_show_error.
Impact
Name collisions mislead searches, and changing a default needs a repo-wide grep.
Suggested fix
Work through the checklist; each item is a standalone commit. Add tests asserting DEFAULT_SETTINGS["hotkeys"] == DEFAULT_HOTKEYS and that the summary CPS default equals the settings default before deduplicating.
Acceptance criteria
- Checklist items done
-
make checkgreen
Related: #68
Getting started
- Relevant files:
autoclicker/core/settings_manager.py,autoclicker/utils/,autoclicker/core/click_engine.py,autoclicker.py - How to run tests:
make check(Git Bash) ortasks.bat lint,tasks.bat typecheck,tasks.bat test(cmd). Single test:python -m pytest tests/test_x.py::TestClass::test_name --no-cov - Related docs:
CONTRIBUTING.md,docs/ARCHITECTURE.md
Filed by repo-audit/full-audit at 9968dc8. Severity: low. Effort: S. audit-key: tech-debt|autoclicker/utils/profiles.py|PresetManager.save_preset
Activity