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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user