Commit Graph

50635 Commits

Author SHA1 Message Date
un-pogaz e5a65f69ec Automated conversion of % format specifiers
Using flint. Change has been filtred
because even on safe mode, flint can be too aggressive.
2025-01-28 17:23:13 +01:00
Kovid Goyal c8d9e0c24e Nicer error message when get_properties fails 2025-01-28 19:20:11 +05:30
Kovid Goyal 7d0bba4ca7 Add code to MTP test for putting a file 2025-01-28 11:00:28 +05:30
Kovid Goyal 186cf59ec4 ... 2025-01-28 09:54:36 +05:30
Kovid Goyal 31afd1c9aa ... 2025-01-27 11:20:33 +05:30
Kovid Goyal 8fa56620df Remove unneeded exclusions 2025-01-27 11:15:47 +05:30
Kovid Goyal 25ed9a53f9 Remove unneeded exclusion 2025-01-27 11:13:41 +05:30
Kovid Goyal 024b9cc0fd Remove unneeded exclusion 2025-01-27 11:12:08 +05:30
Kovid Goyal 82796bccd5 Manually fix long lines created by automated format string conversion 2025-01-27 11:09:48 +05:30
Kovid Goyal 5c7dc9613b Automated conversion of % format specifiers
Using ruff. Does not change any translatable strings.
There are still several thousand usages of % left that ruff wont
auto-convert. Get to them someday.
2025-01-27 10:58:48 +05:30
Kovid Goyal 39f7f616bc More uneeded exclusions 2025-01-27 10:29:00 +05:30
Kovid Goyal ddd580c85c Remove more exclusions 2025-01-27 10:26:01 +05:30
Kovid Goyal 68f8d4925e Remove unneeded exclusion 2025-01-27 09:44:16 +05:30
Kovid Goyal 1715558c8f Bump openssl version
Bump to latest in 3.1 series. There are apparently some silly security
scanners that complain about the DLLs even though there are no actual
bugs in them that impact their usage in calibre. Oh well.

Fixes #2096749 [Private bug](https://bugs.launchpad.net/calibre/+bug/2096749)
2025-01-27 09:39:53 +05:30
Kovid Goyal e13e07a660 ... 2025-01-26 11:13:26 +05:30
Kovid Goyal fd75807a9b Output the hresult when getting properties fails 2025-01-26 11:11:27 +05:30
Kovid Goyal 43f9daff11 ... 2025-01-26 11:00:14 +05:30
Kovid Goyal 4de8ffb6f7 ... 2025-01-26 10:38:00 +05:30
Kovid Goyal f172c67706 ./setup.py check now uses strict checking
No need to maintain two ruff configs. And strict checking happens in
editors/CI automatically, making my life a bit easier.

Remove the no longer needed --strict and --pep8 options from the check
command.
2025-01-26 10:35:19 +05:30
Kovid Goyal c6c7ed4dbe pep8 2025-01-26 10:14:58 +05:30
Kovid Goyal 90a97caa3b Merge branch 'make-check-strict-happy' of https://github.com/un-pogaz/calibre 2025-01-26 10:10:15 +05:30
Kovid Goyal 5a0e9aae9e Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-26 09:58:40 +05:30
Charles Haley f939f85498 Improvement found while testing: give selected books to the formatter in CoverView. 2025-01-25 20:17:10 +00:00
Charles Haley 855520cc08 Redid all the changes that got lost somehow. Wish I understood what happened. 2025-01-25 14:54:11 +00:00
un-pogaz 73828a55ae make "setup.py check --strict" happy 2025-01-25 15:44:09 +01:00
Charles Haley f84b4a7829 Preferences / Look & feel changes
- Add infrastructure for automatic handling of lazy operations (now lazy_initialize). There is a new class LazyConfigWidgetBase that supports the lazy operations. It is a drop-in replacement for ConfigWidgetBase
- Convert tab widgets: tb display, tb_partitioning, quickview

Over time I will convert other look & feel tabs, if for no other reason than to speed up opening that set of preferences.
2025-01-25 12:14:45 +00:00
Kovid Goyal c78cfdd926 Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-25 17:31:50 +05:30
Kovid Goyal c10832387d Cleanup previous PR 2025-01-25 17:31:21 +05:30
Charles Haley 4f0e469433 Fix bug in tag browser where cancelling a category icon file getter dialog removes the existing 2025-01-25 09:19:33 +00:00
Kovid Goyal 7e61ea2248 Merge branch 'ruff-pep8-strict' of https://github.com/un-pogaz/calibre 2025-01-25 13:56:37 +05:30
Kovid Goyal 2cfe2ba648 Add symbolic names for various known MTP error codes 2025-01-25 11:03:19 +05:30
Kovid Goyal 452058a4aa DRYer 2025-01-25 10:36:21 +05:30
Kovid Goyal bb6d43d7cd Report bulk failures to stderr 2025-01-25 10:24:15 +05:30
Kovid Goyal 0c4dae5e89 When bulk get of properties fails retry with a single get 2025-01-25 10:19:06 +05:30
Kovid Goyal 4f01aa24e6 Ignore enumerable objects for which getting properties fails
Needed for the PoS Nook which apparently fails to return properties for
many objects. ALso matches libmtp based driver behavior.
2025-01-25 10:10:44 +05:30
Kovid Goyal 64e87a86a7 ... 2025-01-25 10:03:52 +05:30
Kovid Goyal 968acc0a83 Dont use bulk property retrieval for Nook Glowlight 4N
See discussion in: https://bugs.launchpad.net/calibre/+bug/2068527
2025-01-25 09:52:30 +05:30
Kovid Goyal 66cf52e1c6 Dont ignore failures reported in OnEnd when doing bulk property queries 2025-01-25 09:36:16 +05:30
un-pogaz f20aa37527 more string concatenation (extra-edit) 2025-01-24 11:14:25 +01:00
un-pogaz 8810c94933 implicit string concatenation (extra-edit) 2025-01-24 11:14:25 +01:00
un-pogaz ac4fbfc7c9 implicit string concatenation (manual)
ruff 'ISC'
2025-01-24 11:14:25 +01:00
un-pogaz ce83e97a7c unnecessary return (extra-edit) 2025-01-24 11:14:25 +01:00
un-pogaz 0ee26c5e75 unnecessary return None (auto-fix)
ruff 'RET501'
2025-01-24 11:14:24 +01:00
un-pogaz 59cd38256a useless tuple (extra-edit) 2025-01-24 11:14:24 +01:00
un-pogaz ed2930712d various whitespace (extra-edit)
!partial 'E203,E222,E241,E271,E272'
2025-01-24 11:14:24 +01:00
un-pogaz 41cee6f02d various whitespace (auto-fix)
ruff 'E201,E202,E211,E251,E275'
2025-01-24 11:14:24 +01:00
un-pogaz fb0a290127 remove duplicate class field definition (manual)
ruff 'PIE794'
2025-01-24 11:14:22 +01:00
un-pogaz 8dfbcaa057 more misc recomendation (extra-edit) 2025-01-24 11:14:22 +01:00
un-pogaz ddfdc80d3a more misc recomendation (manual)
ruff 'PIE'
2025-01-24 11:14:22 +01:00
un-pogaz e006114716 more misc recomendation (auto-fix)
ruff 'PIE'
2025-01-24 11:14:21 +01:00