Formatting: ruff line-length 100, kwarg-spacing passes, drop blank after short local imports (#6079)
Raise ruff line-length to 100 and extend the local pre-commit format pipeline (def-signature magic-comma normalization, short multi-line assert collapse, kwarg '=' spacing, blank-line-after-short-import removal, adjacent string-literal / f-string+plain merge, redundant-pass pruning). Every transform re-checks the file AST and is dropped if it would differ; the whole-repo reformat is verified AST-identical per file and idempotent.
This commit is contained in:
parent
8ccdf596aa
commit
3ce187da02
377 changed files with 5945 additions and 11859 deletions
|
|
@ -33,7 +33,11 @@ class _Tok:
|
|||
eos_token_id = 99
|
||||
bos_token_id = None
|
||||
|
||||
def __call__(self, t, add_special_tokens = False):
|
||||
def __call__(
|
||||
self,
|
||||
t,
|
||||
add_special_tokens = False,
|
||||
):
|
||||
return {"input_ids": [10]}
|
||||
|
||||
|
||||
|
|
@ -46,7 +50,12 @@ class _Capture:
|
|||
self.last_text = None
|
||||
self.last_images = "__sentinel__"
|
||||
|
||||
def __call__(self, images = None, text = None, add_special_tokens = False):
|
||||
def __call__(
|
||||
self,
|
||||
images = None,
|
||||
text = None,
|
||||
add_special_tokens = False,
|
||||
):
|
||||
self.last_text = text
|
||||
self.last_images = images
|
||||
out = {"input_ids": [[1, 2]]}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue