lintrunner: added black,isort,rustfmt #69
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
architecture: x64 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
set -eux | |
sudo apt-get install -y protobuf-compiler | |
pip install lintrunner lintrunner-adapters | |
pip install .[dev] -v | |
- name: Run lintrunner | |
run: | | |
set -eux | |
lintrunner --force-color --all-files | |
- name: Run Rust Lint | |
run: | | |
set -eux | |
cargo fmt --check |