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
Damien Elmes
61e86cc29d
new change notetype implementation for the frontend
...
- changes can now be undone
- the same field can now be mapped to multiple target fields, allowing
fields to be cloned
- the old Qt dialog has been removed
- the old col.models.change() API calls the new code, to avoid
breaking existing consumers. It requires the field map to always
be passed in, but that appears to have been the common case.
- closes #1175
2021-06-10 22:19:24 +10:00
Damien Elmes
bd24005e08
PreviewDialog was missing from top level browser module
2021-05-18 09:10:28 +10:00
Damien Elmes
b887032244
split browser dialogs into separate files
2021-05-08 15:08:45 +10:00
Damien Elmes
0b8733032d
the find_and_replace alias is not required
...
Was only added recently, so nothing should depend on it yet.
2021-05-08 14:34:57 +10:00
Damien Elmes
78a3536bfc
move "find duplicates" into separate file
...
As far as I'm aware, no add-ons were extending that screen, so I've
dropped the old context object and the export in browser/__init__.py
2021-05-08 14:33:43 +10:00
RumovZ
594a98eff1
Move previewer.py into browser folder
2021-04-13 11:38:35 +02:00
RumovZ
e43f11339f
Declare all legacy pathnames in browser init
2021-04-13 11:30:32 +02:00
RumovZ
88086596b6
Move find_and_replace.py into browser/dialogs
2021-04-13 11:21:36 +02:00
RumovZ
7ee40e3dce
Refactor sidebar.py into browser folder
2021-04-13 11:05:49 +02:00
RumovZ
2000c80fd2
Refactor browser and table into folders
2021-04-12 09:50:44 +02:00