"docs/source/en/index.md" did not exist on "45e11091e5332809972aa64148ac0a42aa775841"
pyproject.toml 1.12 KB
Newer Older
1
[tool.ruff]
2
3
4
line-length = 119

[tool.ruff.lint]
5
# Never enforce `E501` (line length violations).
6
ignore = ["C901", "E501", "E741", "F402", "F823" ]
7
select = ["C", "E", "F", "I", "W"]
8

Sylvain Gugger's avatar
Sylvain Gugger committed
9
# Ignore import violations in all `__init__.py` files.
10
[tool.ruff.lint.per-file-ignores]
Sylvain Gugger's avatar
Sylvain Gugger committed
11
12
13
14
"__init__.py" = ["E402", "F401", "F403", "F811"]
"src/transformers/file_utils.py" = ["F401"]
"src/transformers/utils/dummy_*.py" = ["F401"]

15
[tool.ruff.lint.isort]
16
17
lines-after-imports = 2
known-first-party = ["transformers"]
18

19
20
21
22
23
24
25
26
27
28
29
30
31
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"

# Like Black, indent with spaces, rather than tabs.
indent-style = "space"

# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false

# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"

32
33
34
[tool.pytest.ini_options]
doctest_optionflags="NUMBER NORMALIZE_WHITESPACE ELLIPSIS"
doctest_glob="**/*.md"
35
36
markers = [
    "flash_attn_test: marks tests related to flash attention (deselect with '-m \"not flash_attn_test\"')",
37
    "bitsandbytes: select (or deselect with `not`) bitsandbytes integration tests",
38
]