Merge pull request #490 from SuperCowPowers/pipeline_work #1470
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 Linting | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
pip install flake8 black | |
- name: Run Black (Code Formatting) | |
run: | | |
black --line-length=120 src/sageworks applications tests | |
- name: Run Flake8 (Linting) | |
run: | | |
flake8 --exclude '*generated*' src/sageworks applications tests | |