19 Commits

Author SHA1 Message Date
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
0560b429bf convert some legacy percent format (auto-fix)
ruff 'UP031'
2025-01-24 11:14:16 +01:00
Kovid Goyal
53b74283a4
sort imports in all python files 2024-03-30 13:02:22 +05:30
Kovid Goyal
c352e3e9ed
... 2023-04-23 09:05:58 +05:30
Kovid Goyal
cf520a0884
Dont use email to close launchpad bugs
Their email service appears to be broken. So use the fast responder
script instead.
2023-04-22 14:33:20 +05:30
Kovid Goyal
24c460faec
also upgrade code in setup folder 2022-01-08 12:15:18 +05:30
Kovid Goyal
9ff27782de
Remove useless __future__ imports
Not needed on python3
2020-08-22 18:47:55 +05:30
Flaviu Tamas
01fbf09c0b
Undo redundant imports & new-style raises
New-style rasies need to be redone in a py2-friendly way, and the
redudant imports are redudnant and can safely be removed
2018-09-10 12:11:29 +05:30
Flaviu Tamas
0889ee85ec
Fix syntax errors
Command used:

futurize --no-diffs -f libfuturize.fixes.fix_print_with_import -f lib2to3.fixes.fix_throw -f lib2to3.fixes.fix_numliterals -f lib2to3.fixes.fix_except -f lib2to3.fixes.fix_exec -f lib2to3.fixes.fix_raise -f lib2to3.fixes.fix_tuple_params -f lib2to3.fixes.fix_ne -j20 -w -n setup recipes src manual setup.py recipes/*.recipe

And manual adjustments of print((...)) -> print(...)
2018-09-10 12:11:28 +05:30
Kovid Goyal
4df998fdd2
Ignore 404s on private bugs 2018-06-18 13:24:33 +05:30
Kovid Goyal
e8fdd7a83c
Migrate git hooks to py3 2018-06-12 18:01:55 +05:30
Kovid Goyal
d425d50a90 pep8 and change ticket closing message slighlty 2017-02-16 11:35:37 +05:30
Kovid Goyal
ef09e886b3 Change all shebangs to use python2 2015-01-23 19:08:21 +05:30
Kovid Goyal
128cbd8695 ... 2014-03-28 10:46:01 +05:30
Kovid Goyal
34d2b0a64f Allow refering to bugs without closing them in commit messages 2013-08-05 11:06:43 +05:30
Kovid Goyal
c5199c2721 Automatically add link to launchpad bug in commits 2013-05-29 18:36:35 +05:30
Kovid Goyal
3d699bb357 oops 2013-05-29 07:59:14 +05:30
Kovid Goyal
d102ec9b32 Convert bzr commit hook to git commit hook 2013-05-28 22:21:45 +05:30