Skip to content

Project python-linter-formatter #1

Project python-linter-formatter

Project python-linter-formatter #1

Workflow file for this run

name: Lint and Format
on: [push, pull_request]
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install flake8 black
- name: Run flake8
run: |
source venv/bin/activate
flake8 .
- name: Run black
run: |
source venv/bin/activate
black --check .