Use doc builder styler (#16412)

* Config update

* Use doc-builder styler

* Cleanup

* Adapt import

* We need it there too!
This commit is contained in:
Sylvain Gugger
2022-03-28 07:45:18 -04:00
committed by GitHub
parent 8049dfa427
commit 473709fc76
8 changed files with 16 additions and 567 deletions

View File

@@ -852,7 +852,7 @@ jobs:
- run: isort --check-only examples tests src utils
- run: python utils/custom_init_isort.py --check_only
- run: flake8 examples tests src utils
- run: python utils/style_doc.py src/transformers docs/source --max_len 119 --check_only
- run: doc-builder style src/transformers docs/source --max_len 119 --check_only --path_to_docs docs/source
check_repository_consistency:
working_directory: ~/transformers