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