LLaMA-Factory-Mirror/pyproject.toml

47 lines
887 B
TOML
Raw Normal View History

2023-07-15 16:54:28 +08:00
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
2024-01-20 19:58:04 +08:00
[tool.black]
line-length = 119
target-version = ["py38"]
[tool.ruff]
2024-02-07 00:45:58 +08:00
line-length = 119
indent-width = 4
[tool.ruff.lint]
2024-01-20 20:15:56 +08:00
ignore = ["C408", "C901", "E501", "E731", "E741", "W605"]
2024-01-20 19:58:04 +08:00
select = ["C", "E", "F", "I", "W"]
[tool.ruff.isort]
lines-after-imports = 2
known-first-party = ["llmtuner"]
2024-02-07 00:45:58 +08:00
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
2024-01-20 19:58:04 +08:00
[isort]
default_section = "FIRSTPARTY"
known_first_party = "llmtuner"
known_third_party = [
"accelerate",
"datasets",
"gradio",
"numpy",
"peft",
"torch",
"transformers",
"trl"
]
line_length = 119
lines_after_imports = 2
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true