forked from Nerogar/OneTrainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
41 lines (36 loc) · 1.01 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[project]
requires-python = ">=3.10"
[tool.ruff]
extend-exclude = [
# Exclude all third-party dependencies and environments.
# NOTE: Conda installs mgds+diffusers into "src/" in the project directory.
".venv*",
"venv*",
"conda_env*",
"src",
# Do not lint the universal Python 2/3 version checker.
"scripts/util/version_check.py",
]
line-length = 120
[tool.ruff.lint]
select = ["F", "E", "W", "I", "B", "UP", "YTT", "BLE", "C4", "T10", "ISC", "ICN", "PIE", "PYI", "RSE", "RET", "SIM", "PGH", "FLY", "NPY", "PERF"]
ignore = ["BLE001", "E402", "E501", "B024", "PGH003", "RET504", "RET505", "SIM102", "UP015", "PYI041"]
[tool.ruff.lint.isort.sections]
hf = ["diffusers*", "transformers*"]
mgds = ["mgds"]
torch = ["torch*"]
[tool.ruff.format]
quote-style = "double"
docstring-code-format = true
[tool.ruff.lint.isort]
known-first-party = ["modules"]
section-order = [
"future",
"standard-library",
"first-party",
"mgds",
"torch",
"hf",
"third-party",
"local-folder",
]