transformers/tests/trainer
Arthur 651408a077
[Styling] stylify using ruff (#27144)
* try to stylify using ruff

* might need to remove these changes?

* use ruf format andruff check

* use isinstance instead of type comparision

* use # fmt: skip

* use # fmt: skip

* nits

* soem styling changes

* update ci job

* nits isinstance

* more files update

* nits

* more nits

* small nits

* check and format

* revert wrong changes

* actually use formatter instead of checker

* nits

* well docbuilder is overwriting this commit

* revert notebook changes

* try to nuke docbuilder

* style

* fix feature exrtaction test

* remve `indent-width = 4`

* fixup

* more nits

* update the ruff version that we use

* style

* nuke docbuilder styling

* leve the print for detected changes

* nits

* Remove file I/O

Co-authored-by: charliermarsh
 <charlie.r.marsh@gmail.com>

* style

* nits

* revert notebook changes

* Add # fmt skip when possible

* Add # fmt skip when possible

* Fix

* More `  # fmt: skip` usage

* More `  # fmt: skip` usage

* More `  # fmt: skip` usage

* NIts

* more fixes

* fix tapas

* Another way to skip

* Recommended way

* Fix two more fiels

* Remove asynch
Remove asynch

---------

Co-authored-by: charliermarsh <charlie.r.marsh@gmail.com>
2023-11-16 17:43:19 +01:00
..
__init__.py
test_data_collator.py handle numpy inputs in whole word mask data collator (#22032) 2023-03-10 10:50:29 -05:00
test_trainer.py [Styling] stylify using ruff (#27144) 2023-11-16 17:43:19 +01:00
test_trainer_callback.py Apply ruff flake8-comprehensions (#21694) 2023-02-22 09:14:54 +01:00
test_trainer_distributed.py Patch with accelerate xpu (#25714) 2023-09-05 15:41:42 +01:00
test_trainer_seq2seq.py Have seq2seq just use gather (#27025) 2023-11-14 14:54:44 -05:00
test_trainer_tpu.py
test_trainer_utils.py Apply ruff flake8-comprehensions (#21694) 2023-02-22 09:14:54 +01:00