50725 Commits

Author SHA1 Message Date
un-pogaz
3720de10d2 always use raw-string for regex (manual)
ruff 'RUF039'
2025-01-24 11:14:20 +01:00
un-pogaz
ac6912565a always use raw-string for regex (auto-fix)
ruff 'RUF039'
2025-01-24 11:14:20 +01:00
un-pogaz
567a0187f3 unnecessary regex (manual)
ruff 'RUF055'
2025-01-24 11:14:20 +01:00
un-pogaz
bd59682f46 unnecessary regex (auto-fix)
ruff 'RUF055'
2025-01-24 11:14:20 +01:00
un-pogaz
7f6a11a368 useless dict operation (auto-fix)
ruff 'RUF051,RUF056'
2025-01-24 11:14:20 +01:00
un-pogaz
4aa2c3a342 enable preview mode 2025-01-24 11:14:20 +01:00
un-pogaz
dd35da54fd useless if-else (manual)
ruff 'RUF034'
2025-01-24 11:14:20 +01:00
un-pogaz
dcc86ee4ef explicit f-string conversion (extra-edit) 2025-01-24 11:14:20 +01:00
un-pogaz
5edc9b814c explicit f-string conversion (auto-fix)
ruff 'RUF010'
2025-01-24 11:14:20 +01:00
un-pogaz
537ea5ef34 parenthesize chained operators (extra-edit) 2025-01-24 11:14:19 +01:00
un-pogaz
76c091c975 parenthesize chained operators (auto-fix)
ruff 'RUF021'
2025-01-24 11:14:19 +01:00
un-pogaz
93aa2ff492 unnecessary key check (auto-fix)
ruff 'RUF019'
2025-01-24 11:14:19 +01:00
un-pogaz
c9b55c924a unsorted dunder all/slots (extra-edit) 2025-01-24 11:14:19 +01:00
un-pogaz
d8aecf09ea unsorted dunder all/slots (auto-fix)
ruff 'RUF022,RUF023'
2025-01-24 11:14:19 +01:00
un-pogaz
88bae18216 various misc recomendation (extra-edit)
ruff 'RUF'
2025-01-24 11:14:19 +01:00
un-pogaz
437c6bfc61 various trailing comma (extra-edit) 2025-01-24 11:14:19 +01:00
un-pogaz
8ba35b97b5 fix trailing comma (manual)
ruff 'COM818'
2025-01-24 11:14:19 +01:00
un-pogaz
5d7c9a4cf3 unnecessary collection call and some dict with keyword arguments (extra-edit) 2025-01-24 11:14:19 +01:00
un-pogaz
bd59bf631e unnecessary collection call and some dict with keyword arguments (auto-fix)
ruff 'C408'
2025-01-24 11:14:19 +01:00
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 db0f74812ba1e945903aa959515d1f6d49af3439

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