[quality] update quality check to make sure we check imports 😈 (#29771)
* update quality check * make it nice * update * let's make sure it runs and we have the logs actually * update workflow * nits
This commit is contained in:
@@ -157,6 +157,7 @@ jobs:
|
||||
command: pip freeze | tee installed.txt
|
||||
- store_artifacts:
|
||||
path: ~/transformers/installed.txt
|
||||
- run: python -c "from transformers import *" || (echo '🚨 import failed, this means you introduced unprotected imports! 🚨'; exit 1)
|
||||
- run: ruff check examples tests src utils
|
||||
- run: ruff format tests src utils --check
|
||||
- run: python utils/custom_init_isort.py --check_only
|
||||
|
||||
Reference in New Issue
Block a user