transformers/tests/pipelines
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 refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_pipelines_audio_classification.py Allow dict input for audio classification pipeline (#23445) 2023-06-23 13:50:37 +01:00
test_pipelines_automatic_speech_recognition.py [Styling] stylify using ruff (#27144) 2023-11-16 17:43:19 +01:00
test_pipelines_common.py Fix RequestCounter to make it more future-proof (#27406) 2023-11-09 18:53:26 +01:00
test_pipelines_conversational.py [Styling] stylify using ruff (#27144) 2023-11-16 17:43:19 +01:00
test_pipelines_depth_estimation.py Set usedforsecurity=False in hashlib methods (FIPS compliance) (#27483) 2023-11-16 14:29:53 +00:00
test_pipelines_document_question_answering.py Mark pipeline tests to skip them easily (#21887) 2023-03-02 10:55:36 -05:00
test_pipelines_feature_extraction.py Mark pipeline tests to skip them easily (#21887) 2023-03-02 10:55:36 -05:00
test_pipelines_fill_mask.py device agnostic pipelines testing (#27129) 2023-10-31 15:46:31 +01:00
test_pipelines_image_classification.py 🚨🚨 🚨🚨 [Tokenizer] attemp to fix add_token issues🚨🚨 🚨🚨 (#23909) 2023-09-18 20:28:36 +02:00
test_pipelines_image_segmentation.py Set usedforsecurity=False in hashlib methods (FIPS compliance) (#27483) 2023-11-16 14:29:53 +00:00
test_pipelines_image_to_image.py Add image to image pipeline (#25393) 2023-09-22 19:53:55 +03:00
test_pipelines_image_to_text.py Skip test_conditional_generation_pt_pix2struct in Past CI (torch < 1.11) (#24417) 2023-06-22 15:34:13 +02:00
test_pipelines_mask_generation.py Set usedforsecurity=False in hashlib methods (FIPS compliance) (#27483) 2023-11-16 14:29:53 +00:00
test_pipelines_object_detection.py Mark pipeline tests to skip them easily (#21887) 2023-03-02 10:55:36 -05:00
test_pipelines_question_answering.py [Styling] stylify using ruff (#27144) 2023-11-16 17:43:19 +01:00
test_pipelines_summarization.py device agnostic pipelines testing (#27129) 2023-10-31 15:46:31 +01:00
test_pipelines_table_question_answering.py Skip some TQAPipelineTests tests in past CI (#24267) 2023-06-14 14:25:24 +02:00
test_pipelines_text_classification.py device agnostic pipelines testing (#27129) 2023-10-31 15:46:31 +01:00
test_pipelines_text_generation.py device agnostic pipelines testing (#27129) 2023-10-31 15:46:31 +01:00
test_pipelines_text_to_audio.py Enrich TTS pipeline parameters naming (#26473) 2023-11-02 17:06:56 +00:00
test_pipelines_text2text_generation.py Mark pipeline tests to skip them easily (#21887) 2023-03-02 10:55:36 -05:00
test_pipelines_token_classification.py [Styling] stylify using ruff (#27144) 2023-11-16 17:43:19 +01:00
test_pipelines_translation.py Mark pipeline tests to skip them easily (#21887) 2023-03-02 10:55:36 -05:00
test_pipelines_video_classification.py Mark pipeline tests to skip them easily (#21887) 2023-03-02 10:55:36 -05:00
test_pipelines_visual_question_answering.py device agnostic pipelines testing (#27129) 2023-10-31 15:46:31 +01:00
test_pipelines_zero_shot_audio_classification.py Enable ZeroShotAudioClassificationPipelineTests::test_small_model_pt (#24882) 2023-07-18 15:08:53 +02:00
test_pipelines_zero_shot_image_classification.py 🚨🚨🚨 Fix rescale ViVit Efficientnet (#25174) 2023-07-28 19:52:51 +01:00
test_pipelines_zero_shot_object_detection.py Mark pipeline tests to skip them easily (#21887) 2023-03-02 10:55:36 -05:00
test_pipelines_zero_shot.py Update tiny models and a few fixes (#22928) 2023-04-24 14:45:22 +02:00