Skip to content

support pymysql (#29) #154

support pymysql (#29)

support pymysql (#29) #154

Workflow file for this run

---
name: code linter
on:
schedule:
- cron: "45 3 * * 0"
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
push:
branches:
- 'main'
- 'feature/**'
- '!doc/**'
paths:
- "!Makefile"
- "!README.md"
- 'library/*.py'
- 'filter_plugins/*.py'
- '.config/pycodestyle.cfg'
pull_request:
branches:
- 'main'
- 'feature/**'
- '!doc/**'
paths:
- "!Makefile"
- "!README.md"
- 'library/*.py'
- 'filter_plugins/*.py'
- '.config/pycodestyle.cfg'
jobs:
pycodestyle:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python_version:
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Check out the codebase.
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
- name: 🐍 set up python
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python_version }}"
- name: Install test dependencies.
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pycodestyle
- name: Lint code.
run: |
pycodestyle library/ --config=.config/pycodestyle.cfg --statistics --count --exclude=test_*.py
pycodestyle filter_plugins/ --config=.config/pycodestyle.cfg --statistics --count --exclude=test_*.py
...