pyproject.toml 741 Bytes
Newer Older
1
2
[tool.black]
line-length = 119
3
4
5
6
target-version = ['py37']

[tool.ruff]
# Never enforce `E501` (line length violations).
7
ignore = ["C901", "E501", "E741"]
8
select = ["C", "E", "F", "I", "W"]
9
10
line-length = 119

Sylvain Gugger's avatar
Sylvain Gugger committed
11
12
13
14
15
16
# 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"]

17
18
19
[tool.ruff.isort]
lines-after-imports = 2
known-first-party = ["transformers"]
20

21
22
23
[tool.pytest.ini_options]
doctest_optionflags="NUMBER NORMALIZE_WHITESPACE ELLIPSIS"
doctest_glob="**/*.md"
24
25
26
markers = [
    "flash_attn_test: marks tests related to flash attention (deselect with '-m \"not flash_attn_test\"')",
]