Files
LLMs-from-scratch/.github/workflows/pep8-linter.yml
2024-03-18 07:57:17 -05:00

22 lines
470 B
YAML

name: Python PEP8 Linting
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install flake8
run: pip install flake8
- name: Run flake8 with exceptions
run: flake8 . --max-line-length=120 --ignore=W504,E402,E731,C406,E741,E722