Skip to content

Change line length to 120 #9

Change line length to 120

Change line length to 120 #9

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- uses: psf/black@stable
with:
options: |
--check
--line-length 120
src: ./MFramework
build:
uses: ./.github/workflows/docker.yml

Check failure on line 42 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint.yml

Invalid workflow file

error parsing called workflow ".github/workflows/lint.yml" -> "./.github/workflows/docker.yml" (source branch with sha:8c9fc8e5eb27e51c500475dbb4fe928c218e7d3a) : workflow is not reusable as it is missing a `on.workflow_call` trigger
needs: [lint]