Anki/qt/aqt/browser
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
..
sidebar Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
table Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
__init__.py Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
browser.py add answer key shortcuts to grade now dialog (#4055) 2025-06-04 12:15:33 +07:00
card_info.py Add Cmd+W close shortcut (on Mac) to more dialogs (#3905) 2025-04-24 18:53:01 +10:00
find_and_replace.py Enable strict_optional in aqt/. and aqt/browser (#3486) 2024-10-11 23:12:48 +10:00
find_duplicates.py Fix AnkiWebPage not being initialized for default web view kinds (e.g. in add-ons) (#3933) 2025-04-22 21:22:40 +10:00
layout.py Enable strict_optional in aqt/. and aqt/browser (#3486) 2024-10-11 23:12:48 +10:00
previewer.py Enable strict_optional in aqt/. and aqt/browser (#3486) 2024-10-11 23:12:48 +10:00