Commit a5da0a28 authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Fix style check CI job (#3564)

Summary:
It seems that the default Python version was updated to 3.11.
libcst does not have binary release for 3.11, so the CI attempts to
build from source but it fails because building libcst requires Rust
compiler.

This commit fix the Python version of style check job to 3.10 so that
the issue with Rust compiler is avoided.

Pull Request resolved: https://github.com/pytorch/audio/pull/3564

Reviewed By: huangruizhe

Differential Revision: D48499560

Pulled By: mthrok

fbshipit-source-id: 53ab77268d8143f4946d92e8cd1f96aea55e7b72
parent a25bcb6b
...@@ -19,7 +19,10 @@ jobs: ...@@ -19,7 +19,10 @@ jobs:
echo '::group::Setup environment' echo '::group::Setup environment'
eval "$("$(which conda)" shell.bash hook)" eval "$("$(which conda)" shell.bash hook)"
pip install --progress-bar=off pre-commit # libcst does not have 3.11 pre-built binaries yet. Use python 3.10
conda create -y --name env python=3.10
conda activate env
pip3 install --progress-bar=off pre-commit
echo '::endgroup::' echo '::endgroup::'
set +e set +e
......
...@@ -8,3 +8,6 @@ line-length = 120 ...@@ -8,3 +8,6 @@ line-length = 120
target-version = ["py38"] target-version = ["py38"]
[tool.ufmt] [tool.ufmt]
excludes = [
"examples/tutorials/",
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment