2020-09-23 02:12:36 +00:00
|
|
|
[tool.black]
|
|
|
|
|
line-length = 119
|
2023-02-06 23:10:56 +00:00
|
|
|
target-version = ['py37']
|
|
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
|
# Never enforce `E501` (line length violations).
|
2023-04-25 13:17:56 +00:00
|
|
|
ignore = ["C901", "E501", "E741"]
|
2023-02-22 08:14:54 +00:00
|
|
|
select = ["C", "E", "F", "I", "W"]
|
2023-02-06 23:10:56 +00:00
|
|
|
line-length = 119
|
|
|
|
|
|
2023-02-07 17:27:31 +00:00
|
|
|
# Ignore import violations in all `__init__.py` files.
|
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
|
"__init__.py" = ["E402", "F401", "F403", "F811"]
|
|
|
|
|
"src/transformers/file_utils.py" = ["F401"]
|
|
|
|
|
"src/transformers/utils/dummy_*.py" = ["F401"]
|
|
|
|
|
|
2023-02-06 23:10:56 +00:00
|
|
|
[tool.ruff.isort]
|
|
|
|
|
lines-after-imports = 2
|
|
|
|
|
known-first-party = ["transformers"]
|
2023-04-03 18:03:41 +00:00
|
|
|
|
2023-04-05 11:53:19 +00:00
|
|
|
# This is ignored, maybe because of the header? If someone finds a fix, we can uncomment and remove setup.cfg
|
|
|
|
|
# [tool.pytest]
|
|
|
|
|
# doctest_optionflags="NUMBER NORMALIZE_WHITESPACE ELLIPSIS"
|