From 5960a6e5058df3ccad2ccd0dc47d5f8e09b348b0 Mon Sep 17 00:00:00 2001 From: zhyncs Date: Thu, 18 Jul 2024 20:04:30 +1000 Subject: [PATCH] feat: add lint workflow (#648) --- .github/workflows/lint.yml | 19 +++++++++++++++++++ 1 file changed, 19 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 000000000..c0b83dd3a --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,19 @@ +name: lint + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install pre-commit hook + run: | + python -m pip install pre-commit + pre-commit install + - name: Linting + run: pre-commit run --all-files