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]
|
|
|
|
ignore = ["C901", "E501", "E741", "W605"]
|
|
|
|
select = ["C", "E", "F", "I", "W"]
|
|
|
|
line-length = 119
|
|
|
|
|
|
|
|
[tool.ruff.isort]
|
|
|
|
lines-after-imports = 2
|
|
|
|
known-first-party = ["llmtuner"]
|
|
|
|
|
|
|
|
[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
|