2023-07-15 08:54:28 +00:00
|
|
|
[build-system]
|
|
|
|
requires = ["setuptools>=61.0"]
|
|
|
|
build-backend = "setuptools.build_meta"
|
2024-01-20 11:58:04 +00:00
|
|
|
|
|
|
|
[tool.ruff]
|
2024-02-26 09:25:47 +00:00
|
|
|
target-version = "py38"
|
2024-02-06 16:45:58 +00:00
|
|
|
line-length = 119
|
|
|
|
indent-width = 4
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
2024-01-20 12:15:56 +00:00
|
|
|
ignore = ["C408", "C901", "E501", "E731", "E741", "W605"]
|
2024-01-20 11:58:04 +00:00
|
|
|
select = ["C", "E", "F", "I", "W"]
|
|
|
|
|
2024-02-06 17:10:04 +00:00
|
|
|
[tool.ruff.lint.isort]
|
2024-01-20 11:58:04 +00:00
|
|
|
lines-after-imports = 2
|
2024-05-16 10:39:08 +00:00
|
|
|
known-first-party = ["llamafactory"]
|
2024-02-26 09:25:47 +00:00
|
|
|
known-third-party = [
|
2024-01-20 11:58:04 +00:00
|
|
|
"accelerate",
|
|
|
|
"datasets",
|
|
|
|
"gradio",
|
|
|
|
"numpy",
|
|
|
|
"peft",
|
|
|
|
"torch",
|
|
|
|
"transformers",
|
|
|
|
"trl"
|
|
|
|
]
|
2024-02-26 09:25:47 +00:00
|
|
|
|
|
|
|
[tool.ruff.format]
|
|
|
|
quote-style = "double"
|
|
|
|
indent-style = "space"
|
2024-03-06 06:51:51 +00:00
|
|
|
docstring-code-format = true
|
2024-02-26 09:25:47 +00:00
|
|
|
skip-magic-trailing-comma = false
|
|
|
|
line-ending = "auto"
|