1. 20 Apr, 2020 1 commit
  2. 06 Jan, 2020 2 commits
  3. 22 Dec, 2019 4 commits
    • Aymeric Augustin's avatar
      Use built-in open(). · 1c62e87b
      Aymeric Augustin authored
      On Python 3, `open is io.open`.
      1c62e87b
    • 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
      Sort imports with isort. · 158e82e0
      Aymeric Augustin authored
      This is the result of:
      
          $ isort --recursive examples templates transformers utils hubconf.py setup.py
      158e82e0
  4. 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
  5. 13 Dec, 2019 1 commit
  6. 10 Dec, 2019 1 commit
  7. 05 Dec, 2019 1 commit
    • LysandreJik's avatar
      Cleanup · e9217da5
      LysandreJik authored
      Improve global visibility on the run_squad script, remove unused files and fixes related to XLNet.
      e9217da5
  8. 04 Dec, 2019 2 commits
  9. 03 Dec, 2019 2 commits