43 Commits

Author SHA1 Message Date
Kovid Goyal
6da6d6192e
Bump version of lxml
Needed to rebuild it anyway because of the libxml2 version bump
2025-09-21 08:54:29 +05:30
un-pogaz
7ac8017524 fix pyproject.toml 2025-09-18 12:37:38 +02:00
Kovid Goyal
93f2261eda
Fix incorrect dep migration 2025-09-17 10:46:00 +05:30
Kovid Goyal
2dd12298fa
Bump some dependency versions that have security advisories 2025-09-16 22:35:24 +05:30
Kovid Goyal
c036356789
Move python dependencies into pyproject.toml
Integrates better with external tooling
2025-09-16 20:36:44 +05:30
Kovid Goyal
5ef384300d
Dont ignore removed ruff linting rule 2025-09-14 19:09:44 +05:30
un-pogaz
730ac72ee8 pep8: fix bare except
ruff 'E722'
2025-07-16 08:55:16 +02:00
un-pogaz
774b9de832 improve pyproject.toml 2025-04-12 11:03:27 +02:00
un-pogaz
a92a0baf2e add codespell.exclude 2025-03-25 09:30:01 +01:00
un-pogaz
65129f5abf improve codespell options 2025-03-25 09:30:01 +01:00
un-pogaz
a08f63e332 revert "let's <> lets" 2025-03-23 19:29:08 +01:00
un-pogaz
a6b17efea9 PR suggestion 2025-03-23 19:17:05 +01:00
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
Luz Paz
253030327b Fix various typos 2025-03-22 13:09:53 -04:00
un-pogaz
66c782d033 clean unused variable
ruff 0.9.10 fix the issue with the unused unpacked variable
2025-03-07 22:39:47 +01:00
un-pogaz
75aff43417 conversion of remaining % format 2025-02-02 10:18:08 +01:00
un-pogaz
e5a65f69ec Automated conversion of % format specifiers
Using flint. Change has been filtred
because even on safe mode, flint can be too aggressive.
2025-01-28 17:23:13 +01:00
Kovid Goyal
8fa56620df
Remove unneeded exclusions 2025-01-27 11:15:47 +05:30
Kovid Goyal
25ed9a53f9
Remove unneeded exclusion 2025-01-27 11:13:41 +05:30
Kovid Goyal
024b9cc0fd
Remove unneeded exclusion 2025-01-27 11:12:08 +05:30
Kovid Goyal
82796bccd5
Manually fix long lines created by automated format string conversion 2025-01-27 11:09:48 +05:30
Kovid Goyal
39f7f616bc
More uneeded exclusions 2025-01-27 10:29:00 +05:30
Kovid Goyal
ddd580c85c
Remove more exclusions 2025-01-27 10:26:01 +05:30
Kovid Goyal
68f8d4925e
Remove unneeded exclusion 2025-01-27 09:44:16 +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
fb0a290127 remove duplicate class field definition (manual)
ruff 'PIE794'
2025-01-24 11:14:22 +01:00
un-pogaz
c10d407f59 convert tab indent to space (manual)
ruff 'W191'
2025-01-24 11:14:10 +01:00
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
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
un-pogaz
e4c469a1e2 add 'INT' rule to errors checking 2024-12-16 19:10:55 +01:00
un-pogaz
8c9d880f41 pep8
improvement of Ruff settings
2024-12-15 13:17:49 +01:00
un-pogaz
9090d624b1 Qt Wrapper complitant to pep8 2024-12-15 13:17:48 +01:00
Kovid Goyal
cc1b698cde
fix isort on rapydscript handling of __python__ 2024-03-30 10:34:03 +05:30
Kovid Goyal
63289d8294
Switch to ruff based isort 2024-03-30 09:24:18 +05:30
Kovid Goyal
c7250ed3aa
Move required python version into pyproject.toml 2024-03-29 13:17:09 +05:30
Kovid Goyal
c373d8c93d
... 2024-03-29 12:24:52 +05:30
Kovid Goyal
0da36a9835
Use ruff for auto-format 2024-03-29 12:05:34 +05:30
Kovid Goyal
b339bc343f
Disable pylsp-mypy 2024-03-28 19:29:05 +05:30
Kovid Goyal
1f1e08980c
ruff changed how it likes to be configured 2024-02-05 14:42:13 +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
a981e08b2c
Move to ruff and pyproject.toml 2023-01-10 19:09:26 +05:30