From cb6f16b164a19e6b2eb2b73a396e0ef75bfe07eb Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 24 Aug 2020 23:18:22 +0100 Subject: Create lint.yml --- .github/workflows/lint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..39846ae --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +name: Lint Python code + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + lint: + name: "Lint code" + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Checkout branch + uses: actions/checkout@v2 + + - name: Install Poetry and project dependencies + uses: knowsuchagency/poetry-install@v2 + + - name: Setup flake8 annotations + uses: rbialon/flake8-annotations@v1 + + - name: Lint code with Flake8 + run: poetry run flake8 . --count --show-source --statistics -- cgit v1.2.3