Enforce black in CI.

This commit is contained in:
Aymeric Augustin 2019-12-21 15:49:11 +01:00
parent fa84ae26d6
commit 6e5291a915

View file

@ -86,6 +86,16 @@ jobs:
- run: sudo pip install --progress-bar off -r docs/requirements.txt
- run: sudo pip install --progress-bar off -r requirements.txt
- run: ./.circleci/deploy.sh
check_code_quality:
working_directory: ~/transformers
docker:
- image: circleci/python:3.6
resource_class: small
parallelism: 1
steps:
- checkout
- run: sudo pip install black
- run: black --check --line-length 119 examples templates transformers utils
check_repository_consistency:
working_directory: ~/transformers
docker:
@ -105,6 +115,7 @@ workflows:
version: 2
build_and_test:
jobs:
- check_code_quality
- check_repository_consistency
- run_examples_py3_torch
- run_tests_py3_custom_tokenizers