Commit 9e80fc7b authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Enforce isort in CI.

We need https://github.com/timothycrosley/isort/pull/1000 but there's no
release with this fix yet, so we'll install from GitHub.
parent 158e82e0
...@@ -90,12 +90,15 @@ jobs: ...@@ -90,12 +90,15 @@ jobs:
working_directory: ~/transformers working_directory: ~/transformers
docker: docker:
- image: circleci/python:3.6 - image: circleci/python:3.6
resource_class: small resource_class: medium
parallelism: 1 parallelism: 1
steps: steps:
- checkout - checkout
- run: sudo pip install black - run: sudo pip install --editable .
- run: sudo pip install torch tensorflow tensorboardX scikit-learn
- run: sudo pip install black git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort
- run: black --check --line-length 119 examples templates transformers utils - run: black --check --line-length 119 examples templates transformers utils
- run: isort --check-only --recursive examples templates transformers utils
check_repository_consistency: check_repository_consistency:
working_directory: ~/transformers working_directory: ~/transformers
docker: docker:
......
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