From f9bbf95d5bd3068d63591a6497a9439463873e80 Mon Sep 17 00:00:00 2001 From: manuelsommer <47991713+manuel-sommer@users.noreply.github.com> Date: Mon, 16 Oct 2023 17:08:35 +0200 Subject: [PATCH] adding flake8 (#12) * adding flake8 * adding flake8 * adding flake8 --- .flake8 | 18 ++++++++++++++++++ .github/workflows/flake8.yml | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .flake8 create mode 100644 .github/workflows/flake8.yml diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..4a11159 --- /dev/null +++ b/.flake8 @@ -0,0 +1,18 @@ +[flake8] +# Documentation for flake8 http://flake8.pycqa.org/en/3.1.1/user/index.html + +# we should not ignore these mistakes !!!!!!!! + +ignore = + # undefined file name excpetion + F821 + + +exclude = + # No need to traverse our git directory + .git, + # There's no value in checking cache directories + __pycache__, + # This contains of branch that we don't want to check + # dev +max-complexity = 10 diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml new file mode 100644 index 0000000..5a78f71 --- /dev/null +++ b/.github/workflows/flake8.yml @@ -0,0 +1,17 @@ +name: flake8 Lint + +on: [push, pull_request] + +jobs: + flake8-lint: + runs-on: ubuntu-latest + name: Lint + steps: + - name: Check out source repository + uses: actions/checkout@v3 + - name: Set up Python environment + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: flake8 Lint + uses: py-actions/flake8@v2