Anki/pylib/tests
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
..
support tweaking the folder names again 2020-01-03 07:48:38 +10:00
__init__.py
shared.py
test_cards.py
test_collection.py
test_decks.py Return a copy of note type in ModelManager.get() (#3865) 2025-03-26 15:11:34 +10:00
test_exporting.py Return a copy of note type in ModelManager.get() (#3865) 2025-03-26 15:11:34 +10:00
test_find.py Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
test_flags.py
test_importing.py Drop Pauker and SuperMemo importers from legacy importer 2025-06-27 16:10:12 +07:00
test_latex.py Add a preference to toggle LaTeX generation (#3218) 2024-06-01 09:26:28 +01:00
test_media.py
test_models.py
test_schedv3.py Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
test_stats.py
test_template.py
test_utils.py