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
un-pogaz
047ebcffe4
convert some legacy percent format (manual)
...
ruff 'UP031'
2025-01-24 11:14:16 +01:00
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
55469a6ab6
...
2025-01-14 10:03:00 +05:30
un-pogaz
74c535f624
setup check: common files walker
2025-01-13 19:39:25 +01:00
un-pogaz
c1f7c9dd95
add option --strict to 'setup.py check'
...
Perform the checking more strictely. See the file "ruff-strict-pep8.toml"
2025-01-13 19:38:41 +01:00
Kovid Goyal
89e88b9678
Cleanup previous PR
2024-12-17 19:22:09 +05:30
un-pogaz
2e935d394c
add option --pep8 to 'setup.py check'
...
Automatically fix some of the smallest errors, then perform a pep8 commit
2024-12-17 12:59:26 +01:00
un-pogaz
6452ae7f9a
improve output message with auto-fix
2024-12-17 11:03:10 +01:00
un-pogaz
e2156ec23d
add option --fix to 'setup.py check'
...
Try to automatically fix some of the smallest errors
2024-12-15 13:17:48 +01:00
un-pogaz
21a524a513
safer setup.py check
2024-12-15 13:17:48 +01:00
Kovid Goyal
53b74283a4
sort imports in all python files
2024-03-30 13:02:22 +05:30
Paolo Melchiorre
16fbab9362
Fix minimum required Python version for ruff, black and pyupgrade
2023-11-22 11:37:17 +01:00
Kovid Goyal
b7795f989e
Fix invocation of ruff since its CLI has changed
2023-05-25 08:32:41 +05:30
Kovid Goyal
4419e7d65a
Move to ruff for ./setup.py check
2023-01-10 19:31:32 +05:30
Kovid Goyal
24c460faec
also upgrade code in setup folder
2022-01-08 12:15:18 +05:30
Kovid Goyal
224db2bb02
command to upgrade source code
2022-01-08 11:26:18 +05:30
Kovid Goyal
b8ec9c5809
another resource warning
2021-06-24 22:16:35 +05:30
Kovid Goyal
2cf8312e6a
Migrate reference to Changelog.yaml
2020-10-29 12:15:32 +05:30
Kovid Goyal
9ff27782de
Remove useless __future__ imports
...
Not needed on python3
2020-08-22 18:47:55 +05:30
Kovid Goyal
29cd8d64ea
Change shebangs to python from python2
...
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30
Kovid Goyal
1e07b48116
Checking of changelog needs python 3 now
2020-02-11 11:24:40 +05:30
Eli Schwartz
6526c28bd6
check: cleanup file exclusions
...
Some of these files no longer exist due to being devendored.
BeautifulSoup.py is now something else entirely which is
calibre-specific code and deserves the right to be linted.
2019-10-28 16:10:00 -04:00
Kovid Goyal
070ad5351e
Remove old viewer and coffeescript and viewer resources
...
Since the PDF output code is also going to be replaced, none
of this is required.
2019-09-13 09:12:17 +05:30
Kovid Goyal
8366df8637
Run code quality checks on the odf package
2019-05-20 16:52:16 +05:30
Kovid Goyal
13961abd16
Also check python files using python 3 flake8
2019-04-13 09:17:31 +05:30
Kovid Goyal
e73dbb0f99
py3: Port calls to json.dump()
2019-03-31 18:30:59 +05:30
Kovid Goyal
1a928fc497
Remove unused code
2018-09-10 18:41:52 +05:30
Kovid Goyal
af6d043375
Switch to using msgfmt to check for format errors in translated strings
...
It catches more than pofilter with fewer false positives.
2017-06-18 10:26:24 +05:30
Kovid Goyal
1f2293fc11
Use vim rather than gvim
2017-02-09 23:41:06 +05:30
Kovid Goyal
e333001d31
Apply the PEP8 blank line standards to the entire codebase
2016-10-11 11:39:08 +05:30
Kovid Goyal
567040ee1e
Perform PEP8 compliance checks on the entire codebase
...
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30
Kovid Goyal
ffe7a1885b
Add clean to check
2016-06-25 12:53:29 +05:30
Kovid Goyal
05d9209053
Also check RapydScript files when running python setup.py check
...
Use sha1 hashes for the check cache instead of mtimes. More reliable
and should work with the travis cache as well, if you decide to run
check on travis
2016-06-25 11:26:23 +05:30
Kovid Goyal
d62fb3334b
...
2015-09-04 09:00:17 +05:30
Kovid Goyal
ef09e886b3
Change all shebangs to use python2
2015-01-23 19:08:21 +05:30
Kovid Goyal
568d49bac7
Change paths for testing of Changelog
2015-01-15 15:41:19 +05:30
Kovid Goyal
27b57c73b3
...
2014-08-22 08:40:28 +05:30
Kovid Goyal
ab82e663f8
Dont check .py files auto-generated from .ui files
2014-08-21 21:21:51 +05:30
Kovid Goyal
dc80d92b1d
Exclude the markdown code from check
2013-09-25 18:13:57 +05:30
Kovid Goyal
79eeec929d
Speed up search query parser
2013-04-20 15:09:17 +05:30
Kovid Goyal
47fb117828
Switch to using flake8 to check for errors
2013-04-09 12:30:24 +05:30
Kovid Goyal
286c0f3db6
...
2013-02-12 10:07:45 +05:30
Kovid Goyal
a59f6249d4
Use the calibre coffeescript compiler when checking .coffee files for robustness
2013-02-12 09:56:57 +05:30
Kovid Goyal
dd033a2bcc
...
2012-12-28 08:07:53 +05:30
Kovid Goyal
c9601ae83b
Build process checking for coffeescript
2012-01-05 20:08:48 +05:30
Kovid Goyal
c7bf67e6c3
Various fixes to markdown found by the automatic python checker
2011-09-03 14:42:04 -06:00
Kovid Goyal
6c01b3cc67
Updated translations
2011-09-02 10:14:21 -06:00