Recent commits to derivepassphrase.git (00d96a60b5550f588d29f6eaaee3fc9c21e75094) https://git.schokokeks.org/derivepassphrase.git/tree/00d96a60b5550f588d29f6eaaee3fc9c21e75094 Recent commits feed provided by GitList. Sort sections in pyproject.toml https://git.schokokeks.org/derivepassphrase.git/commit/00d96a60b5550f588d29f6eaaee3fc9c21e75094 m@the13thletter.info (Marco Ricci) Sat, 17 Aug 2024 00:52:02 +0200 00d96a60b5550f588d29f6eaaee3fc9c21e75094 Merge topic branch 'issue4-improve-common-error-messages' into master * t/issue4-improve-common-error-messages: Add Changelog entry for error message/handling revision Add missing tests for reworked error message handling Fix error message capitalization Fix error bubbling in outdated test Add a specific error class and codes for SSH agent failures Document and handle other errors passed through to the command-line interface Use better error message handling in the command-line interface GitHub: Closes #4. https://git.schokokeks.org/derivepassphrase.git/commit/e662c2e71c50e57f465fdeb8efb403ed77147e8c m@the13thletter.info (Marco Ricci) Fri, 16 Aug 2024 17:12:56 +0200 e662c2e71c50e57f465fdeb8efb403ed77147e8c Add Changelog entry for error message/handling revision https://git.schokokeks.org/derivepassphrase.git/commit/0cec4ae52c864d9f772897fef0e069761d6adf1d m@the13thletter.info (Marco Ricci) Fri, 16 Aug 2024 17:12:38 +0200 0cec4ae52c864d9f772897fef0e069761d6adf1d Add missing tests for reworked error message handling Add missing tests for the revised error messages/classes and error handling code due to a1763e8b5dedbf123856a79ddb0e8395cddd6f88 and 5c6045e10ca9c8b56432711dec5efb98b5892d55. https://git.schokokeks.org/derivepassphrase.git/commit/a128400376d1f51845e8e75b32281a870fb354a7 m@the13thletter.info (Marco Ricci) Fri, 16 Aug 2024 16:31:24 +0200 a128400376d1f51845e8e75b32281a870fb354a7 Fix error message capitalization We still use error messages with non-sentence case at multiple places, particularly messages like "no valid SSH key selected". https://git.schokokeks.org/derivepassphrase.git/commit/c9e62dd6c58a3b4c627dd5d6dda0b4c4d4ec1330 m@the13thletter.info (Marco Ricci) Fri, 16 Aug 2024 16:21:45 +0200 c9e62dd6c58a3b4c627dd5d6dda0b4c4d4ec1330 Fix error bubbling in outdated test In `tests.test_derivepassphrase_cli:test_230a_config_directory_not_a_file`, we assumed that a `FileExistsError` while storing the configuration file would bubble all the way up to the test harness. This isn't the case anymore, because of a1763e8b5dedbf123856a79ddb0e8395cddd6f88 and 5c6045e10ca9c8b56432711dec5efb98b5892d55... but we actually forgot to update the call to use the new wrapper from 5c6045e10ca9c8b56432711dec5efb98b5892d55. https://git.schokokeks.org/derivepassphrase.git/commit/f08cd0300661ac562d049604ee81214ced8aad91 m@the13thletter.info (Marco Ricci) Fri, 16 Aug 2024 16:19:56 +0200 f08cd0300661ac562d049604ee81214ced8aad91 Add a specific error class and codes for SSH agent failures Add the generic `SSH_AGENT_FAILURE` and `SSH_AGENT_SUCCESS` status codes (as `_types.SSH_AGENT.FAILURE` and `_types.SSH_AGENT.SUCCESS`, respectively), and add an `SSHAgentFailedError` class to signal error returns from the SSH agent. The error class may emit a specific or a generic error message, depending on the status code and error message passed. Rewrite the tests to use actual failure status codes, instead of random magic numbers. Rewrite it further to deal with the `_types.SSH_AGENT` enum instead of numeric codes. This also makes the tests more readable. https://git.schokokeks.org/derivepassphrase.git/commit/4eb85f64c8f18a55eb83c3909322a78b11ba6c87 m@the13thletter.info (Marco Ricci) Fri, 16 Aug 2024 13:27:20 +0200 4eb85f64c8f18a55eb83c3909322a78b11ba6c87 Document and handle other errors passed through to the command-line interface These errors have already been passed through, but they were neither documented nor explicitly handled in the command-line interface with an appropriate error message. https://git.schokokeks.org/derivepassphrase.git/commit/5c6045e10ca9c8b56432711dec5efb98b5892d55 m@the13thletter.info (Marco Ricci) Fri, 16 Aug 2024 12:48:10 +0200 5c6045e10ca9c8b56432711dec5efb98b5892d55 Use better error message handling in the command-line interface Instead of blindly relying on `click.Context.fail`, which causes a usage message to be printed, implement our own error-exit function. Furthermore, since writing the configuration file is prone to similar problems as reading it, include a wrapper for writing the configuration file as well, which ensures errors are properly reported. Due to the rewrite, some error messages changed slightly in phrasing and/or in capitalization. https://git.schokokeks.org/derivepassphrase.git/commit/a1763e8b5dedbf123856a79ddb0e8395cddd6f88 m@the13thletter.info (Marco Ricci) Fri, 16 Aug 2024 12:38:08 +0200 a1763e8b5dedbf123856a79ddb0e8395cddd6f88 Merge topic branch 'restructure-package' into master * t/restructure-package: Prune empty subpackages `sequin` and `ssh_agent` Update documentation to use new module names Annotate settings and selections in pyproject.toml Consolidate `types` submodules into combined `_types` submodule Move `sequin` and `ssh_agent_client` submodules below `derivepassphrase` GitHub: Closes #3, closes #7. https://git.schokokeks.org/derivepassphrase.git/commit/c4a57f311710768cb18df717a73fd48a8a3077fe m@the13thletter.info (Marco Ricci) Sat, 03 Aug 2024 21:53:16 +0200 c4a57f311710768cb18df717a73fd48a8a3077fe