mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00

* Result of black 23.1 * Update target to Python 3.7 * Switch flake8 to ruff * Configure isort * Configure isort * Apply isort with line limit * Put the right black version * adapt black in check copies * Fix copies
14 lines
281 B
TOML
14 lines
281 B
TOML
[tool.black]
|
|
line-length = 119
|
|
target-version = ['py37']
|
|
|
|
[tool.ruff]
|
|
# Never enforce `E501` (line length violations).
|
|
ignore = ["E501", "E741", "W605"]
|
|
select = ["E", "F", "I", "W"]
|
|
line-length = 119
|
|
|
|
[tool.ruff.isort]
|
|
lines-after-imports = 2
|
|
known-first-party = ["transformers"]
|