Move source code inside a src subdirectory.

This prevents transformers from being importable simply because the CWD
is the root of the git repository, while not being importable from other
directories. That led to inconsistent behavior, especially in examples.

Once you fetch this commit, in your dev environment, you must run:

    $ pip uninstall transformers
    $ pip install -e .
This commit is contained in:
Aymeric Augustin
2019-12-22 13:54:22 +01:00
parent ced0a94204
commit 6be7cdda66
102 changed files with 7 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
.PHONY: style
style:
black --line-length 119 examples templates tests transformers utils
isort --recursive examples templates tests transformers utils
black --line-length 119 examples templates tests src utils
isort --recursive examples templates tests src utils