2266 Commits

Author SHA1 Message Date
Kovid Goyal
5067e48eac
Also retry downloads used during bootstrap 2025-09-22 12:42:05 +05:30
Kovid Goyal
d3571561cc
Retry tx download in CI script 2025-09-22 12:24:14 +05:30
Kovid Goyal
461ec48174
Avoid extra interpreter startup in hook 2025-09-21 12:31:49 +05:30
Kovid Goyal
8d8580973d
... 2025-09-21 11:03:08 +05:30
Kovid Goyal
89652f81f0
Fix pre-commit hook filter 2025-09-21 06:13:02 +05:30
Kovid Goyal
cf725bee8c
handle missing follow_symlinks on windows 2025-09-21 06:06:17 +05:30
Kovid Goyal
74662373cb
Cleanup previous PR
Run the hooks using calibre-debug directly no need to go through sh
2025-09-20 16:51:15 +05:30
un-pogaz
2458e20dba add pre-commit git hook 2025-09-20 11:11:41 +02:00
un-pogaz
a589785ad2 support passing a file as argument for check
and quiet ruff
2025-09-20 11:11:41 +02:00
un-pogaz
5fed12a0ca windows want its executable as first parameter 2025-09-20 11:11:41 +02:00
un-pogaz
e7e1f86183 setup.py git_hooks
Install/uninstall git hooks
2025-09-20 11:11:41 +02:00
Kovid Goyal
b32e33777a
Rename git hook script
Its a commit message hook not a pre commit hook
2025-09-18 14:52:25 +05:30
Kovid Goyal
cb3ae447dc
Make CodeQL happy
Dont output github token to stdout during build
2025-09-15 14:47:46 +05:30
Kovid Goyal
1f69ab8701
Make CodeQL happy
None of these are actual issues, as is usual for CodeQL
2025-09-15 13:16:19 +05:30
Kovid Goyal
2431f1f47c
... 2025-08-21 10:39:25 +05:30
Kovid Goyal
20afcedbd8
Also retrieve plugin category when mirroring plugins 2025-08-21 10:37:09 +05:30
Kovid Goyal
9aa21105d4
Transifex CLI renamed on Arch, sigh 2025-07-31 07:32:19 +05:30
Kovid Goyal
b901371df0
Get CI working 2025-07-30 21:00:10 +05:30
Kovid Goyal
c7907e2081
Allow extdev to work with local libraries 2025-07-30 21:00:09 +05:30
Kovid Goyal
650aeee96d
Get new piper module working on macOS 2025-07-30 21:00:09 +05:30
Kovid Goyal
9021419440
Get the piper module working on windows 2025-07-30 21:00:09 +05:30
Kovid Goyal
c46e58d479
Start work on getting rid of piper code and only using the model data
The inference code if a few hundred lines anyway, piper is unmaintained
and forked and the fork depends on the gigantic python ONNXRuntime
bindings. Just write the few hundred lines myself.
2025-07-30 21:00:08 +05:30
Kovid Goyal
95d788d9fa
Add the two remaining ffml strings to be translated 2025-07-22 19:20:00 +05:30
Kovid Goyal
29c309d23a
Restore formatter function help texts to Transifex
We now use the form processed for easy translation. Fixes #2117352 [Translatable raw strings cause spurious newlines on Transifex](https://bugs.launchpad.net/calibre/+bug/2117352)
2025-07-22 18:53:27 +05:30
Kovid Goyal
0fc4516bc2
The piper project list of voices has changed format and location
Need to look into updating the actual binary bundled with calibre as
well. Fixes #2117433 [download Neural network metadata with error](https://bugs.launchpad.net/calibre/+bug/2117433)
2025-07-22 07:41:29 +05:30
un-pogaz
730ac72ee8 pep8: fix bare except
ruff 'E722'
2025-07-16 08:55:16 +02:00
Kovid Goyal
b54a0957e3
Replace use of atexit 2025-07-15 14:12:12 +05:30
Kovid Goyal
f83e15f7aa
Remove unused code 2025-07-15 14:08:49 +05:30
Kovid Goyal
abd93cd457
Workaround for the execrable qmake mistakenly thinking its setuid when run with uid==0 and euid!=0
Instead of dropping and regaining privileges, fork and run sub commands
in child with uid!=0
2025-07-15 14:07:21 +05:30
Kovid Goyal
f8deedd4c8
Use a static tmp dir for user manual builds 2025-06-20 10:28:23 +05:30
Kovid Goyal
4da88111a7
Dont build man page in Indonesian as sphinx fails for it 2025-04-18 08:44:00 +05:30
Kovid Goyal
6f63366c14
... 2025-04-11 17:29:01 +05:30
Kovid Goyal
5d6f454ab3
Add a check to prevent accidentally releasing a preview as the main release 2025-04-11 17:27:46 +05:30
un-pogaz
b0d58ade70 add 'code' dictionary to codespell setting 2025-03-23 16:02:05 +01:00
un-pogaz
d176b3a7cf add codespell to pyproject.toml
calibre will probably never fully compliant with codespell
this setting is only to easily find common typo errors
by filtring a great range of false-positives, but not all
2025-03-23 13:59:14 +01:00
Kovid Goyal
cd3d151e7e
Silence spurious warning 2025-03-15 08:39:01 +05:30
Kovid Goyal
464b68bd98
automatic fixes from ruf version 11 for spurious uses of int() 2025-03-15 08:38:07 +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
ddd580c85c
Remove more exclusions 2025-01-27 10:26:01 +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
c10832387d
Cleanup previous PR 2025-01-25 17:31:21 +05:30
un-pogaz
ac4fbfc7c9 implicit string concatenation (manual)
ruff 'ISC'
2025-01-24 11:14:25 +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
ddfdc80d3a more misc recomendation (manual)
ruff 'PIE'
2025-01-24 11:14:22 +01:00
un-pogaz
0b23eaf328 code indentation (extra-edit) 2025-01-24 11:14:21 +01:00
un-pogaz
8d28380515 add/remove blank-line (extra-edit)
ruff 'E302,E303,E304,E305,W391'
2025-01-24 11:14:21 +01:00
un-pogaz
5540126765 uniform region (extra-edit) 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
8ba35b97b5 fix trailing comma (manual)
ruff 'COM818'
2025-01-24 11:14:19 +01:00
un-pogaz
cc172a2a48 unnecessary map (auto-fix)
ruff 'C417' --unsafe-fixes
2025-01-24 11:14:18 +01:00