open-mmlab / Amphion

Amphion (/æmˈfaɪən/) is a toolkit for Audio, Music, and Speech Generation. Its purpose is to support reproducible research and help junior researchers and engineers get started in the field of audio, music, and speech generation research and development.
https://openhlt.github.io/amphion/
MIT License
4.49k stars 386 forks source link

[Feature]: Use ruff to improve code style #195

Open Nugine opened 5 months ago

Nugine commented 5 months ago

Is your feature request related to a problem? Please describe.

I see some small problems when I read through the codebase. It's easy to find out by a linter.

Describe the solution you'd like

Use ruff in github actions to enforce a unified code style.

pip install ruff
python -m ruff check **/*.py
RMSnow commented 5 months ago

Hi @Nugine, thanks for your insightful suggestions! We are now using Black to format the code. We will investigate ruff soon! (cc @Adorable-Qin)