Anki/pylib
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
..
anki Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
rsbridge Update to Rust 1.88 2025-06-29 11:50:49 +07:00
tests Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
tools Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
.gitignore symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
hatch_build.py Python dependency/wheel tweaks 2025-06-27 16:10:12 +07:00
pyproject.toml Drop psutil from wheel requirements 2025-06-27 16:10:12 +07:00
README.md minor doc updates 2020-12-11 22:37:12 +10:00

Anki's Python library code is in anki/.

The Rust/Python extension module is in rsbridge/; it references the library defined in ../rslib.