From 46af6a870b786636594fd875605d0082592960ed Mon Sep 17 00:00:00 2001 From: Egor Kostan <20955183+ikostan@users.noreply.github.com> Date: Wed, 25 Dec 2024 05:09:21 -0800 Subject: [PATCH] Create flake8_kyu7.yml --- .github/workflows/flake8_kyu7.yml | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/flake8_kyu7.yml diff --git a/.github/workflows/flake8_kyu7.yml b/.github/workflows/flake8_kyu7.yml new file mode 100644 index 00000000000..f6c3ad57586 --- /dev/null +++ b/.github/workflows/flake8_kyu7.yml @@ -0,0 +1,47 @@ +--- +name: Flake8 for kyu7 + +on: # yamllint disable-line rule:truthy + push: + branches: + - 'kyu7' + +permissions: + contents: read + pull-requests: read + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.x"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + # This is the version of the action for setting up Python, + # not the Python version. + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + # You can test your matrix by printing the current + # Python version + - name: Display Python version + run: python -c "import sys; print(sys.version)" + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools wheel + pip install -r requirements.txt + pip install flake8 + - name: Check to make sure that the module is in your Python path + run: | + echo $PYTHONPATH + - name: Lint with flake8 + # yamllint disable rule:line-length + # stop the build if there are Python syntax errors or undefined names + # exit-zero treats all errors as warnings. + # The GitHub editor is 127 chars wide + run: | + flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_7 + flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_7 + # yamllint enable rule:line-length