follow-cvelist.py configurable terminal width #120
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: Python Code Quality | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
black: | |
name: Black | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Black formatting for Python scripts | |
uses: psf/black@stable | |
with: | |
options: --check --verbose | |
src: . | |
other: | |
name: Other | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Multiple other Python code quality check tools combined | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install Code Quality tools | |
run: pip install ruff flake8 mypy isort | |
- name: Ruff extremely fast Python linter and code formatter | |
run: ruff check */*.py | |
- name: Flake8 (with Black compatible settings) | |
run: flake8 --max-line-length=88 --extend-ignore=E203,E701 */*.py | |
- name: Mypy strict static type checking | |
run: mypy --strict */*.py | |
- name: Isort imports alphabetically, separated into sections and by type | |
run: isort --check --diff --profile black */*.py |