Files
LLMs-from-scratch/.github/workflows/pep8-linter.yml
Sebastian Raschka 88fd849b88 Switch from pip to uv (#529)
* Replace pip by more modern uv

* uv tests

* update yaml

* update yaml

* update yaml

* update flake8

* update windows commands

* fix windows test

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix
2025-02-15 13:13:13 -06:00

30 lines
684 B
YAML

name: PEP8 Style checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install flake8
run: |
python -m pip install --upgrade pip
pip install uv
uv venv --python=python3.10
source .venv/bin/activate
uv pip install flake8
- name: Run flake8 with exceptions
run: |
source .venv/bin/activate
flake8 . --max-line-length=140 --ignore=W504,E402,E731,C406,E741,E722,E226 --exclude .venv