Skip to content

fix python linting using venv #742

fix python linting using venv

fix python linting using venv #742

Workflow file for this run

---
name: Python formatting
"on": pull_request
jobs:
PEP8:

Check failure on line 7 in .github/workflows/python.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v5
- run: pip install --upgrade pip
- id: pip_install
run: pip install --upgrade isort~=5.0 flake8~=6.0 flake8-docstrings~=1.0
- name: isort
run: isort . --check --diff
if: (success() || failure()) && steps.pip_install.conclusion == 'success'
- name: Black
uses: psf/black@stable
with:
version: "~=23.0"
options: "--check --diff"
src: "."
if: (success() || failure()) && steps.pip_install.conclusion == 'success'
- name: Flake8
run: flake8 .
if: (success() || failure()) && steps.pip_install.conclusion == 'success'