From 9a59241b7cfdf161fef1e84972b669df8d5df789 Mon Sep 17 00:00:00 2001 From: Huy Le Nguyen Date: Sun, 5 May 2024 00:00:54 +0700 Subject: [PATCH] chore: fix deps and vscode configs --- .vscode/extensions.json | 9 +++++++++ .vscode/settings.json | 20 +++++++++++++++++++- requirements.txt | 36 ++++++++++++++++++------------------ 3 files changed, 46 insertions(+), 19 deletions(-) create mode 100644 .vscode/extensions.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000000..ad8cb9108e --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + "recommendations": [ + "ms-python.isort", + "ms-python.black-formatter", + "ms-python.pylint", + "ms-python.vscode-pylance", + "ms-python.python" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 5b5a4756e2..4669ae5867 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,5 +15,23 @@ "autoDocstring.docstringFormat": "numpy", "[python]": { "editor.defaultFormatter": "ms-python.black-formatter", - } + }, + "pylint.path": [ + "${interpreter}", + "-m", + "pylint" + ], + "pylint.args": [ + "--rcfile=${workspaceFolder}/.pylintrc" + ], + "black-formatter.path": [ + "${interpreter}", + "-m", + "black" + ], + "isort.path": [ + "${interpreter}", + "-m", + "isort" + ] } \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 512cf8de66..d1a8bfd209 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,23 +1,23 @@ -SoundFile==0.12.1 -nltk==3.8.1 -sentencepiece==0.1.99 -tqdm==4.66.3 -librosa==0.10.1 -PyYAML==6.0.1 -sounddevice==0.4.6 -jinja2==3.1.3 -fire==0.5.0 -jiwer==3.0.3 -chardet==5.1.0 -charset-normalizer==2.1.1 +SoundFile~=0.12.1 +nltk~=3.8.1 +sentencepiece~=0.1.99 +tqdm~=4.66.3 +librosa~=0.10.1 +PyYAML~=6.0.1 +sounddevice~=0.4.6 +jinja2~=3.1.3 +fire~=0.5.0 +jiwer~=3.0.3 +chardet~=5.1.0 +charset-normalizer~=2.1.1 # extra=dev -pytest==7.4.1 -black==24.3.0 -pylint==2.17.5 -matplotlib==3.7.2 -pydot==1.4.2 -graphviz==0.20.1 +pytest~=7.4.1 +black~=24.3.0 +pylint~=3.1.0 +matplotlib~=3.7.2 +pydot~=1.4.2 +graphviz~=0.20.1 # extra=tf2-12 tensorflow~=2.12.0