pyproject.toml 699 B

1234567891011121314151617181920212223
  1. [tool.black]
  2. line-length = 119
  3. target-version = ['py37']
  4. [tool.ruff]
  5. # Never enforce `E501` (line length violations).
  6. ignore = ["C901", "E501", "E741"]
  7. select = ["C", "E", "F", "I", "W"]
  8. line-length = 119
  9. # Ignore import violations in all `__init__.py` files.
  10. [tool.ruff.per-file-ignores]
  11. "__init__.py" = ["E402", "F401", "F403", "F811"]
  12. "src/transformers/file_utils.py" = ["F401"]
  13. "src/transformers/utils/dummy_*.py" = ["F401"]
  14. [tool.ruff.isort]
  15. lines-after-imports = 2
  16. known-first-party = ["transformers"]
  17. # This is ignored, maybe because of the header? If someone finds a fix, we can uncomment and remove setup.cfg
  18. # [tool.pytest]
  19. # doctest_optionflags="NUMBER NORMALIZE_WHITESPACE ELLIPSIS"