improve dev setup comments and hints (#28495)

* improve dev setup comments and hints

* fix tests for new dev setup hints
This commit is contained in:
Timothy Cronin
2024-01-15 13:36:40 -05:00
committed by GitHub
parent 735968b61c
commit ff86bc364d
6 changed files with 7 additions and 7 deletions

View File

@@ -358,12 +358,12 @@ def check_missing_backends():
missing = ", ".join(missing_backends)
if os.getenv("TRANSFORMERS_IS_CI", "").upper() in ENV_VARS_TRUE_VALUES:
raise Exception(
"Full repo consistency checks require all backends to be installed (with `pip install -e .[dev]` in the "
"Full repo consistency checks require all backends to be installed (with `pip install -e '.[dev]'` in the "
f"Transformers repo, the following are missing: {missing}."
)
else:
warnings.warn(
"Full repo consistency checks require all backends to be installed (with `pip install -e .[dev]` in the "
"Full repo consistency checks require all backends to be installed (with `pip install -e '.[dev]'` in the "
f"Transformers repo, the following are missing: {missing}. While it's probably fine as long as you "
"didn't make any change in one of those backends modeling files, you should probably execute the "
"command above to be on the safe side."