From 1dcf3b71223b8a5895e7bf28f0c4f4045cfe8af5 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Wed, 8 Jun 2022 13:11:11 -0600 Subject: [PATCH] Add GitHub action to automate linting (#6157) --- .github/workflows/lint.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..c69aa7fccb --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,16 @@ +name: Lint code + +on: + push: + pull_request: + +jobs: + lint: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + - name: Run pre-commit + uses: pre-commit/action@v3.0.0