File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ target-version = "py38"
4444"src/unitxt/operators.py" = [" C901" ]
4545"docs/conf.py" = [" E402" ]
4646"prepare/instructions/models/llama.py" = [" RUF001" ]
47+ "utils/hf/prepare_dataset.py" = [" T201" ]
48+ "utils/hf/prepare_metric.py" = [" T201" ]
4749
4850[tool .ruff .lint ]
4951# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
Original file line number Diff line number Diff line change 33
44from huggingface_hub import HfApi
55
6- from src .unitxt .logging_utils import get_logger
7-
8- logger = get_logger ()
9-
106files = glob .glob ("./src/unitxt/*.py" )
117
128api = HfApi (token = os .environ ["HUGGINGFACE_HUB_TOKEN" ])
139
14- logger . info ("Uploading files from src/unitxt/ to hf:unitxt/data" )
10+ print ("Uploading files from src/unitxt/ to hf:unitxt/data" )
1511
1612for file in files :
1713 file_name = os .path .basename (file )
2218 if file_name == "dataset.py" :
2319 file_name = "data.py"
2420
25- logger . info (f" - { file_name } " )
21+ print (f" - { file_name } " )
2622
2723 api .upload_file (
2824 path_or_fileobj = file ,
Original file line number Diff line number Diff line change 33
44from huggingface_hub import HfApi
55
6- from src .unitxt .logging_utils import get_logger
7-
8- logger = get_logger ()
9-
106files = glob .glob ("./src/unitxt/*.py" )
117
128api = HfApi (token = os .environ ["HUGGINGFACE_HUB_TOKEN" ])
139
14- logger . info ("\n Uploading files from src/unitxt/ to hf:unitxt/metric" )
10+ print ("\n Uploading files from src/unitxt/ to hf:unitxt/metric" )
1511
1612for file in files :
1713 file_name = os .path .basename (file )
1814
1915 if file_name == "__init__.py" :
2016 continue
2117
22- logger . info (f" - { file_name } " )
18+ print (f" - { file_name } " )
2319
2420 api .upload_file (
2521 path_or_fileobj = file ,
You can’t perform that action at this time.
0 commit comments