Commit Graph

50556 Commits

Author SHA1 Message Date
un-pogaz 9d46c5344c unnecessary map (extra-edit) 2025-01-24 11:14:18 +01:00
un-pogaz cc172a2a48 unnecessary map (auto-fix)
ruff 'C417' --unsafe-fixes
2025-01-24 11:14:18 +01:00
un-pogaz 6cda6a2e5d write better list/set/dict comprehensions (extra-edit) 2025-01-24 11:14:17 +01:00
un-pogaz 6c54a656ba write better list/set/dict comprehensions (auto-fix)
ruff 'C4'
2025-01-24 11:14:17 +01:00
un-pogaz a833a130fc check relative import (manual)
ruff 'TID'
2025-01-24 11:14:17 +01:00
un-pogaz 4d7c180d8f checks misuse of sys.version_info (manual)
ruff 'YTT'
2025-01-24 11:14:16 +01:00
un-pogaz 19994000c9 use f-string instead of format call (extra-edit)
ruff 'UP030,UP032' --extend-exclude "src/calibre/*" !partial
2025-01-24 11:14:16 +01:00
un-pogaz 02854d8b8c convert some legacy percent format (extra-edit) 2025-01-24 11:14:16 +01:00
un-pogaz 047ebcffe4 convert some legacy percent format (manual)
ruff 'UP031'
2025-01-24 11:14:16 +01:00
un-pogaz 0560b429bf convert some legacy percent format (auto-fix)
ruff 'UP031'
2025-01-24 11:14:16 +01:00
un-pogaz 534293eabc decode unicode-escape (extra-edit) 2025-01-24 11:14:16 +01:00
un-pogaz 12cb8b2e58 upgrade hidden print to Python 3 (extra-edit) 2025-01-24 11:14:16 +01:00
un-pogaz e0022f21cf upgrade code to Python 3 (extra-edit) 2025-01-24 11:14:16 +01:00
un-pogaz 5572105076 upgrade code to Python 3 (auto-fix)
ruff 'UP'
2025-01-24 11:14:16 +01:00
un-pogaz b5aca6ff5c uniform string quote (extra-edit) 2025-01-24 11:14:15 +01:00
un-pogaz 37771022ce uniform string quote (auto-fix)
ruff 'Q'
2025-01-24 11:14:14 +01:00
un-pogaz 2357c1fc48 additional noqa work (extra-edit) 2025-01-24 11:14:13 +01:00
un-pogaz d08949b012 add scoped noqa (auto-fix)
ruff --add-noqa
2025-01-24 11:14:13 +01:00
un-pogaz 05c9729698 add scoped noqa 'line too long' (extra-edit) 2025-01-24 11:14:10 +01:00
un-pogaz 7e1edf1fbf add scoped noqa 'line too long' (auto-fix)
ruff 'E501' --add-noqa
2025-01-24 11:14:10 +01:00
un-pogaz a73c48720e remove unscoped noqa (extra-edit)
regex: \s*#\s*noqa\n
2025-01-24 11:14:10 +01:00
un-pogaz c10d407f59 convert tab indent to space (manual)
ruff 'W191'
2025-01-24 11:14:10 +01:00
un-pogaz a741f8a34c Dump ruff-strict-pep8.toml to Python 3.10 2025-01-24 11:14:10 +01:00
un-pogaz a1d9a8ff5b Revert "cherry pick: ruff-strict-pep8.toml"
Revert commit db0f74812b

This allow a better checking of each commit's
because `ruff check` only return the error curently fixed
rather that included all that will be fixed in later commit's
2025-01-24 11:14:10 +01:00
Kovid Goyal f1d2910e73 Ignore subfolders other than thumbnails in system 2025-01-24 10:50:24 +05:30
Kovid Goyal b293089ba3 Increase batch size of Next() calls in inner loop
Also fail with an error for any return value of Next() other than S_OK
and S_FALSE.
2025-01-24 10:32:29 +05:30
Kovid Goyal 614b58c3b6 Bump version for beta release 2025-01-24 09:01:30 +05:30
Kovid Goyal 6e679989db Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-24 09:01:08 +05:30
Charles Haley ac1f1c5b6c Turn off multiple selection in the icon viewer. The underlying mechanisms can't handle it yet. 2025-01-24 02:49:33 +00:00
Charles Haley 8281d102fd Fix regression in the tab hierarchy class caused by previous commit. 2025-01-23 22:27:09 +00:00
Charles Haley 080271a24b Make Look & feel / Tag browser / tb_hierarchy respect the new "lazy" tab process.
I wonder if the lazy tab processing will eventually need to move into a superclass. There are several preference sections that use tabs.
2025-01-23 16:49:20 +00:00
Kovid Goyal ee0606e044 Dont use {template} as translatable string as {word} is python string formatting syntax adn translators dont know whether it shouldbe translated or not and automatic checking tools get confused 2025-01-23 19:15:30 +05:30
Kovid Goyal d8168dd59c Merge branch 'lazy-operations-look_feel' of https://github.com/un-pogaz/calibre 2025-01-23 19:05:41 +05:30
un-pogaz f3e5d970d3 perfom lazy operations for first selected section 2025-01-23 14:22:06 +01:00
un-pogaz 6f84e54bd3 implement lazy operations for "Look & feel" 2025-01-23 13:20:59 +01:00
Kovid Goyal e85d9a2a8e string changes 2025-01-22 22:18:22 +05:30
Kovid Goyal e6bfbbff71 Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-22 21:25:52 +05:30
Charles Haley cf4034c2ff Visual improvements to the icon rules browser. 2025-01-22 14:07:02 +00:00
Kovid Goyal a6fda5e749 String changes 2025-01-22 18:57:14 +05:30
Kovid Goyal f7f649188f Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-22 18:55:40 +05:30
Charles Haley 92078b53c8 Updates to the manual. NB: I used references like :ref:ff_func gui.rst. but don't know if they work. 2025-01-22 11:40:51 +00:00
Kovid Goyal 586be46ff2 ... 2025-01-22 09:45:37 +05:30
Kovid Goyal 3e58252176 automated upgrade of python code using ruff and ./setup.py upgrade_source_code 2025-01-22 09:44:19 +05:30
Kovid Goyal dd71135591 Bump minimum Python version to 3.10
3.8 is EOLed and 3.9 will be EOLed in a few months. 3.10 thus makes a
good base and matches the minimum Python version on my other big Python
project, kitty, so I dont have to keep multiple feature sets in mind
when developing.
2025-01-22 09:37:33 +05:30
Kovid Goyal ac76cbff0f Cleanup previous PR 2025-01-22 09:16:58 +05:30
Kovid Goyal 9041c240f9 Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-22 09:11:49 +05:30
Charles Haley 6866ce84a2 Fix composites that use database methods not working in the content server. Also fix template searches using the database API not working in the content server. Update the manual. 2025-01-21 21:42:54 +00:00
Kovid Goyal a56d277b52 ... 2025-01-21 19:29:13 +05:30
Kovid Goyal 4a77d39053 Dont store reference to db on tag tree nodes
This has the potential of preventing db garbage collection because of
reference cycles and there is no need since the current db is available
globally in the GUI. And we dont unnecessarily carry around an extra
reference on every node.
2025-01-21 18:53:44 +05:30
Kovid Goyal 2a3fdcc3d5 Cleanup previous PR 2025-01-21 18:49:25 +05:30