Skip to content

Commit

Permalink
Fix style check CI job (#3564)
Browse files Browse the repository at this point in the history
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: #3564

Reviewed By: huangruizhe

Differential Revision: D48499560

Pulled By: mthrok

fbshipit-source-id: 53ab77268d8143f4946d92e8cd1f96aea55e7b72
  • Loading branch information
mthrok authored and facebook-github-bot committed Aug 20, 2023
1 parent a25bcb6 commit a5da0a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ jobs:
echo '::group::Setup environment'
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::'
set +e
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ line-length = 120
target-version = ["py38"]

[tool.ufmt]
excludes = [
"examples/tutorials/",
]

0 comments on commit a5da0a2

Please sign in to comment.