From 990ebc277521f44e83d88c8d72533b1cea9303b8 Mon Sep 17 00:00:00 2001 From: Hirokazu Kiyomaru Date: Fri, 17 Nov 2023 18:37:03 +0900 Subject: [PATCH] add lint.yml --- .github/workflows/lint.yml | 18 ++++++++++++++++++ 1 file changed, 18 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 0000000..19c21cf --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,18 @@ +name: Lint + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Python 3.8 + uses: actions/setup-python@v4 + with: + python-version: "3.8" + - name: Run linters + run: | + pipx install pre-commit + pre-commit run --files llm_judge/*.py