Commit 6e5291a9 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Enforce black in CI.

parent fa84ae26
...@@ -86,6 +86,16 @@ jobs: ...@@ -86,6 +86,16 @@ jobs:
- run: sudo pip install --progress-bar off -r docs/requirements.txt - run: sudo pip install --progress-bar off -r docs/requirements.txt
- run: sudo pip install --progress-bar off -r requirements.txt - run: sudo pip install --progress-bar off -r requirements.txt
- run: ./.circleci/deploy.sh - 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: check_repository_consistency:
working_directory: ~/transformers working_directory: ~/transformers
docker: docker:
...@@ -105,6 +115,7 @@ workflows: ...@@ -105,6 +115,7 @@ workflows:
version: 2 version: 2
build_and_test: build_and_test:
jobs: jobs:
- check_code_quality
- check_repository_consistency - check_repository_consistency
- run_examples_py3_torch - run_examples_py3_torch
- run_tests_py3_custom_tokenizers - run_tests_py3_custom_tokenizers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment