Recent commits to derivepassphrase.git (b3fcb7eb5a39c0982bbcf859a7bfc0a3647093e4) https://git.schokokeks.org/derivepassphrase.git/tree/b3fcb7eb5a39c0982bbcf859a7bfc0a3647093e4 Recent commits feed provided by GitList. Add remaining re-linting changes (part 2 of 2) The remaining re-linting changes pertain to new linting codes: * TC006/runtime-cast-value (formerly TCH006) suggests that cast calls use stringified type declarations. Implemented. * B033/duplicate-value requires sets not to contain duplicate values. This is used in the `_types.js_truthiness` function to both test against and to document all of the falsy values except NaN. Ignored. * RUF043/pytest-raises-ambiguous-pattern requires patterns in the `match` argument of `pytest.raises` to be either raw strings, or passed through `re.escape`. Implemented. * RUF046/unnecessary-cast-to-int forbids explicitly casting the result of `math.ceil` to int. I believe `mypy`/`typeshed` originally had problems with this, but this no longer appears to be the case. Implemented. https://git.schokokeks.org/derivepassphrase.git/commit/b3fcb7eb5a39c0982bbcf859a7bfc0a3647093e4 software@the13thletter.info (Marco Ricci) Tue, 07 Jan 2025 22:44:39 +0100 b3fcb7eb5a39c0982bbcf859a7bfc0a3647093e4 Update ruff to v0.8.x, reformat and re-lint (part 1 of 2) We update `ruff` to v0.8.x and reformat the sources. Most conspicuously, `assert` statements typically no longer break the condition to test, and rather push the error message to the next line instead. Also, some implicit string concatenations are undone if they *do* fit onto a single line. We also re-lint the sources, and commit part of the linting fixes. Specifically, omissions in the docstring (raised exceptions, return values) are now marked as linting errors on the docstring itself, instead of at the omitted object (`raise` or `return` statement). Alternatively, we add the missing info to the docstring. We also commit linting fixes regarding improper usage of underscores in variable names (leading underscore instead of trailing underscore on temporary variables). Finally, we correct some improper calls to the logging system (root logger instead of application logger). https://git.schokokeks.org/derivepassphrase.git/commit/3d73e3e0b1e20782bbbea8fa8f5cd113b10757f2 software@the13thletter.info (Marco Ricci) Tue, 07 Jan 2025 22:44:39 +0100 3d73e3e0b1e20782bbbea8fa8f5cd113b10757f2 Format everything with ruff (v0.6.9) https://git.schokokeks.org/derivepassphrase.git/commit/0674f72ee86cfcb17b37361c0f0d5918cadce843 software@the13thletter.info (Marco Ricci) Tue, 07 Jan 2025 22:44:39 +0100 0674f72ee86cfcb17b37361c0f0d5918cadce843 Add more translator's comments ... for diagnostic labels, introductory paragraphs of help texts, and error messages of the form "user aborted operation". https://git.schokokeks.org/derivepassphrase.git/commit/3232cbae1b9160131f5450f622b4aad0571f3c00 software@the13thletter.info (Marco Ricci) Tue, 07 Jan 2025 19:54:00 +0100 3232cbae1b9160131f5450f622b4aad0571f3c00 Fix missing context in CANNOT_UNDERSTAND_AGENT translatable string https://git.schokokeks.org/derivepassphrase.git/commit/da6c33a82ed2fbc47fc30d549dbee06663a1c428 software@the13thletter.info (Marco Ricci) Tue, 07 Jan 2025 19:52:31 +0100 da6c33a82ed2fbc47fc30d549dbee06663a1c428 Fix phrasing of "Cannot update %s settings" message The "Cannot update the global/service settings without actual settings" messages contained "global" and "service" as (English) format string parameters, and the actual translatable string contained no indication what this placeholder actually meant. This is of course a horrible way to request a translation for those two messages. We now include translatable strings for each of the two possible values of the metavar ("global settings" and "service-specific settings"), and proper translation advice for the metavar value and the original translatable strings. The manpages have been updated as well, to reflect the slight change in phrasing of the message. https://git.schokokeks.org/derivepassphrase.git/commit/1b29904d789be7742119bfa06ce11aa5b7ffb6f9 software@the13thletter.info (Marco Ricci) Tue, 07 Jan 2025 19:46:51 +0100 1b29904d789be7742119bfa06ce11aa5b7ffb6f9 Move manpages into separate directory to avoid name clashes This doesn't occur with offline documentation builds with `.html` extensions, but *does* occur if using directories and `index.html` files. Sigh. https://git.schokokeks.org/derivepassphrase.git/commit/05a21ba2ec995ffe82c74ef7c0137792646bce0e software@the13thletter.info (Marco Ricci) Tue, 07 Jan 2025 15:50:41 +0100 05a21ba2ec995ffe82c74ef7c0137792646bce0e Release 0.4.0 https://git.schokokeks.org/derivepassphrase.git/commit/3f51a70db23503a3b23243d7b7c8a59a529da038 software@the13thletter.info (Marco Ricci) Tue, 07 Jan 2025 15:43:35 +0100 3f51a70db23503a3b23243d7b7c8a59a529da038 Merge topic branch '2025-and-zlib-license' into master Note that this includes a change in the license for `derivepassphrase`. * t/2025-and-zlib-license: Add changelog entry, and FAQ for "altered versions" marking Update copyright notices to 2025, and license to zlib/libpng https://git.schokokeks.org/derivepassphrase.git/commit/bc5c69ba7b7181bbe656c4bb874f5bfa84233a2b software@the13thletter.info (Marco Ricci) Tue, 07 Jan 2025 15:36:12 +0100 bc5c69ba7b7181bbe656c4bb874f5bfa84233a2b Add changelog entry, and FAQ for "altered versions" marking https://git.schokokeks.org/derivepassphrase.git/commit/7796b3987c0772c5c857a3f3e683d3e9d49d4c77 software@the13thletter.info (Marco Ricci) Tue, 07 Jan 2025 15:35:45 +0100 7796b3987c0772c5c857a3f3e683d3e9d49d4c77