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 replace the old stripHTML() methods with the backend implementation 2021-10-01 23:15:45 +10:00
shared.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
test_cards.py Drop support for checkpoints (#2742) 2023-10-17 12:43:34 +10:00
test_collection.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
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 PEP8 collection.py 2021-06-27 15:12:22 +10:00
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 PEP8 for rest of pylib (#1451) 2021-10-25 14:50:13 +10:00
test_models.py Dependency updates (#3040) 2024-02-28 16:28:04 +07:00
test_schedv3.py Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
test_stats.py Drop support for checkpoints (#2742) 2023-10-17 12:43:34 +10:00
test_template.py PEP8 cards.py 2021-06-27 12:12:23 +10:00
test_utils.py Fix add-ons screen showing 'requires Anki >= 2.1.231000' 2023-11-05 11:16:09 +10:00