Commit 577a0366 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Enforce flake8 in CI.

parent 7c681264
...@@ -96,9 +96,10 @@ jobs: ...@@ -96,9 +96,10 @@ jobs:
- checkout - checkout
- run: sudo pip install --editable . - run: sudo pip install --editable .
- run: sudo pip install torch tensorflow tensorboardX scikit-learn - 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: sudo pip install black git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort flake8
- 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 - run: isort --check-only --recursive examples templates transformers utils
- run: flake8 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