Skip to content

attribute.py returns None and fails, if all channels are hidden #175 #400

attribute.py returns None and fails, if all channels are hidden #175

attribute.py returns None and fails, if all channels are hidden #175 #400

Workflow file for this run

# Workflow to check code quality and complexity
name: Code Quality
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
# runs-on: self-hosted
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install radon
pip install flake8
pip install flake8-polyfill
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Code complexity
run: |
# Runs Radon quality check
radon cc python --total-average --show-complexity
- name: Code quality with flake8
run: |
# Runs code quality check
flake8 python --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics