Simplify DescribeImageUtililty run and arun logic #411
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linting | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install lint dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv | |
pip install flake8 | |
pip install pylint | |
pip install yamllint | |
- name: Install project dependencies | |
run: | | |
pip install poetry | |
poetry install | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 \ | |
--max-line-length=127 --statistics | |
- name: Lint with pylint | |
run: | | |
pylint ./bot --exit-zero | |
- name: Lint YAML files | |
run: | | |
yamllint . |