From 39090bc85da63504c81dea8f8c23456296476ca3 Mon Sep 17 00:00:00 2001 From: t3tra-dev Date: Wed, 19 Feb 2025 11:12:02 +0900 Subject: [PATCH] feat(ci): lint with flake8 --- .github/workflows/lint.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..462dc46 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,31 @@ +name: Lint + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + + workflow_dispatch: + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: "Set up Python" + uses: actions/setup-python@v5 + with: + python-version-file: "pyproject.toml" + + - name: Install Dependencies + run: | + sudo apt-get update + sudo curl -LsSf https://astral.sh/uv/install.sh | sh + uv add flake8 + + - name: Run Linter + run: flake8 . --ignore=E501