From c38ee4c38f41a7e39da6f416308baafcb9ed7cf3 Mon Sep 17 00:00:00 2001 From: Anderson Brandao Date: Wed, 29 Oct 2025 23:38:14 -0300 Subject: [PATCH] Lint action --- .github/workflows/lint.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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..aa5baab --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,36 @@ +name: Lint + +on: + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.9.24' + + - name: Update pip and setuptools + run: python -m pip install --upgrade pip setuptools + shell: bash + + - name: Install requirements + run: python -m pip install .[dev] + shell: bash + + - name: Run flake8 + run: flake8 . + shell: bash + + - name: Run black + run: black . --check + shell: bash + + - name: Run isort + run: isort . --check-only + shell: bash