Anki/qt/aqt/forms
Abdo f94d05bcbe
Switch to Ruff (#4119)
* Add check:ruff build action

* Add fix:ruff action

* Add Ruff config

Mostly generated by Cursor

* Handle rest of lints

* Fix formatting

* Replace black and isort with ruff-format

* Run ruff-format

* Fix lint errors

* Remove pylint disables

* Remove .pylintrc

* Update docs

* Fix check:format not just checking

* Fix isort rule being ignored

* Sort imports

* Ensure ./ninja format also handles import sorting

* Remove unused isort cfg

* Enable unsafe fixes in fix:ruff, and enable unused var warning

* Re-run on config change; enable unnecessary ARG ignores

* Use all pycodestyle errors, and add some more commented-out ones

Latter logged on https://github.com/ankitects/anki/issues/4135
2025-06-29 14:38:35 +07:00
..
__init__.py Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
about.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
about.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
addcards.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
addcards.ui Use a simple menubar for addcards on macOS 2025-01-26 17:05:09 +11:00
addfield.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
addfield.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
addmodel.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
addmodel.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
addonconf.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
addonconf.ui Use a webview to show add-on's config help (#2281) 2022-12-21 16:55:31 +10:00
addons.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
addons.ui Increase initial add-on dialog size 2022-12-09 12:36:28 +10:00
browser.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
browser.ui Close only "child" window (e.g. Preview) inside Browser on Cmd+W (#3913) 2025-04-27 18:25:20 +10:00
browserdisp.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
browserdisp.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
browseropts.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
browseropts.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
changemap.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
changemap.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
changemodel.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
changemodel.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
clayout_top.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
clayout_top.ui Add minimumContentsLength property to templatesBox (#1781) 2022-04-09 13:55:03 +10:00
customstudy.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
customstudy.ui Redesign deck options inputs (#2082) 2022-09-27 12:16:45 +10:00
dconf.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
dconf.ui Improve hover feedback on various widgets (#2079) 2022-09-20 16:34:15 +10:00
debug.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
debug.ui Start debug console with text area focused 2023-03-22 15:52:55 +10:00
editcurrent.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
editcurrent.ui Give editcurrent its own menubar too 2025-02-06 18:57:59 +07:00
edithtml.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
edithtml.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
emptycards.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
emptycards.ui Fix AnkiWebPage not being initialized for default web view kinds (e.g. in add-ons) (#3933) 2025-04-22 21:22:40 +10:00
exporting.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
exporting.ui Allow im-/exporting with or without deck configs (#2804) 2023-11-13 13:54:41 +10:00
fields.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
fields.ui Add option to exclude fields from search (#2394) 2023-03-20 07:46:03 +10:00
filtered_deck.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
filtered_deck.ui Use seconds instead of minutes for preview delay 2023-12-21 11:02:29 +10:00
finddupes.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
finddupes.ui Fix AnkiWebPage not being initialized for default web view kinds (e.g. in add-ons) (#3933) 2025-04-22 21:22:40 +10:00
findreplace.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
findreplace.ui fixed and tested issue #2608 (#2611) 2023-08-16 07:26:50 +10:00
forget.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
forget.ui Improve hover feedback on various widgets (#2079) 2022-09-20 16:34:15 +10:00
getaddons.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
getaddons.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
importing.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
importing.ui Improve hover feedback on various widgets (#2079) 2022-09-20 16:34:15 +10:00
main.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
main.ui Refactor launcher + various tweaks 2025-06-27 16:10:12 +07:00
modelopts.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
modelopts.ui Improve hover feedback on various widgets (#2079) 2022-09-20 16:34:15 +10:00
models.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
models.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
preferences.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
preferences.ui Add URL scheme whitelist (#3994) 2025-05-15 15:37:49 +10:00
preview.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
preview.ui Redesign deck options inputs (#2082) 2022-09-27 12:16:45 +10:00
profiles.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
profiles.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
progress.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
progress.ui update designer references 2020-11-17 19:55:18 +10:00
reposition.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
reposition.ui Improve hover feedback on various widgets (#2079) 2022-09-20 16:34:15 +10:00
setgroup.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
setgroup.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
setlang.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
setlang.ui Revamp Preferences, implement Minimalist Mode and Qt widget gallery to test GUI changes (#2289) 2023-01-18 21:24:16 +10:00
stats.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
stats.ui Fix AnkiWebPage not being initialized for default web view kinds (e.g. in add-ons) (#3933) 2025-04-22 21:22:40 +10:00
studydeck.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
studydeck.ui update TR references in .ui files 2021-03-26 15:03:51 +10:00
synclog.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
synclog.ui Refactor media sync handling (#2647) 2023-09-10 13:22:20 +10:00
taglimit.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
taglimit.ui Improve hover feedback on various widgets (#2079) 2022-09-20 16:34:15 +10:00
template.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
template.ui Add separate styling for template editor QGroupBoxes (#2337) 2023-01-19 21:14:52 +10:00
widgets.py Drop remaining qt5 code 2025-06-20 16:13:50 +07:00
widgets.ui Revamp Preferences, implement Minimalist Mode and Qt widget gallery to test GUI changes (#2289) 2023-01-18 21:24:16 +10:00