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

@@ -48,13 +48,13 @@ quality:
isort --check-only $(check_dirs)
python utils/custom_init_isort.py --check_only
flake8 $(check_dirs)
python utils/style_doc.py src/transformers docs/source --max_len 119 --check_only
doc-builder style src/transformers docs/source --max_len 119 --check_only --path_to_docs docs/source
# Format source code automatically and check is there are any problems left that need manual fixing
extra_style_checks:
python utils/custom_init_isort.py
python utils/style_doc.py src/transformers docs/source --max_len 119
doc-builder style src/transformers docs/source --max_len 119 --path_to_docs docs/source
# this target runs checks on all files and potentially modifies some of them