1. 22 Dec, 2019 4 commits
    • Aymeric Augustin's avatar
      Move source code inside a src subdirectory. · 6be7cdda
      Aymeric Augustin authored
      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 .
      6be7cdda
    • Aymeric Augustin's avatar
      Fix F401 flake8 warning (x88 / 116). · 783a6169
      Aymeric Augustin authored
      This change is mostly autogenerated with:
      
          $ python -m autoflake --in-place --recursive --remove-all-unused-imports --ignore-init-module-imports examples templates transformers utils hubconf.py setup.py
      
      I made minor changes in the generated diff.
      783a6169
    • Aymeric Augustin's avatar
      Fix F821 flake8 warning (x47). · 2ab78325
      Aymeric Augustin authored
      Ignore warnings related to Python 2, because it's going away soon.
      2ab78325
    • Aymeric Augustin's avatar
      Sort imports with isort. · 158e82e0
      Aymeric Augustin authored
      This is the result of:
      
          $ isort --recursive examples templates transformers utils hubconf.py setup.py
      158e82e0
  2. 21 Dec, 2019 1 commit
    • Aymeric Augustin's avatar
      Reformat source code with black. · fa84ae26
      Aymeric Augustin authored
      This is the result of:
      
          $ black --line-length 119 examples templates transformers utils hubconf.py setup.py
      
      There's a lot of fairly long lines in the project. As a consequence, I'm
      picking the longest widely accepted line length, 119 characters.
      
      This is also Thomas' preference, because it allows for explicit variable
      names, to make the code easier to understand.
      fa84ae26
  3. 16 Dec, 2019 2 commits
  4. 12 Dec, 2019 1 commit
  5. 11 Dec, 2019 2 commits
  6. 10 Dec, 2019 1 commit
  7. 08 Nov, 2019 1 commit
  8. 31 Oct, 2019 1 commit
  9. 11 Oct, 2019 1 commit
  10. 26 Sep, 2019 1 commit
  11. 24 Sep, 2019 3 commits
  12. 08 Sep, 2019 2 commits
  13. 04 Sep, 2019 1 commit
  14. 30 Aug, 2019 4 commits
  15. 28 Aug, 2019 3 commits
  16. 27 Aug, 2019 1 commit
  17. 26 Aug, 2019 1 commit
  18. 16 Aug, 2019 1 commit
  19. 15 Aug, 2019 2 commits
  20. 05 Aug, 2019 3 commits
  21. 27 Jul, 2019 2 commits
  22. 26 Jul, 2019 1 commit