File size: 1,955 Bytes
c8be32d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[tool.pyright]
stubPath = "src/typings"
pythonVersion = "3.11"
pythonPlatform = "All"
typeCheckingMode = "strict"
ignore = ["**/.venv"]

[tool.black]
target-version = ['py311']
preview = true
enable-unstable-feature = ["string_processing"]

[tool.ruff]
extend-include = ["*.ipynb"]
target-version = "py311"
fix = true
required-version = ">=0.5.7"

[tool.ruff.format]
docstring-code-format = true

[tool.ruff.lint]
#select = ["ALL"]
extend-select = ["I"]
ignore = ["D205", "D203", "D212", "D416"]
unfixable = ["F401"]
preview = true

[tool.ruff.lint.flake8-annotations]
ignore-fully-untyped = true
#suppress-none-returning = true

[tool.ruff.lint.flake8-errmsg]
#max-string-length = 20

[tool.ruff.lint.isort]
relative-imports-order = "closest-to-furthest"
section-order = [
    "future",
    "typing",
    "standard-library",
    "third-party",
    "networking",
    "data-science",
    "machine-learning",
    "audio",
    "visualisation",
    "first-party",
    "vc",
    "backend",
    "frontend",
    "base",
    "local-folder",
]

[tool.ruff.lint.isort.sections]
"typing" = ["typing", "typing_extensions", "typings"]
"networking" = [
    "requests",
    "yt_dlp",
    "deemix",
    "wget",
    "flask",
    "beautifulsoup4",
    "pypresence",
]
"data-science" = ["numpy", "scipy", "matplotlib", "tqdm", "pandas", "gradio"]
"machine-learning" = [
    "torch",
    "torchaudio",
    "torchcrepe",
    "fairseq",
    "faiss",
    "tensorboard",
    "torchfcpe",
    "local_attention",
    "libf0",
    "einops",
    "numba",
]
"audio" = [
    "ffmpeg",
    "soundfile",
    "librosa",
    "sox",
    "pydub",
    "pedalboard",
    "audio_separator",
    "parselmouth",
    "pyworld",
    "noisereduce",
    "audio_upscaler",
    "edge_tts",
    "ffmpy",
]
"vc" = ["vc"]
"backend" = ["backend"]
"frontend" = ["frontend"]
"base" = ["common", "app", "cli", "init"]

[tool.ruff.lint.pycodestyle]
max-doc-length = 72

[tool.ruff.lint.pylint]
# max-args = 10