"tests/hubert/test_modeling_hubert.py" did not exist on "400c5a158b5b1850ed8b741cb42c3b94fb9e2812"
pyproject.toml 699 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
# 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"