2023-08-02 23:46:02 +00:00
|
|
|
name: style checks
|
2023-08-11 03:32:31 +00:00
|
|
|
# just formatting and flake8 for now
|
|
|
|
# TODO: add isort later
|
2023-07-21 14:14:31 +00:00
|
|
|
|
2023-07-27 14:53:27 +00:00
|
|
|
on:
|
2023-08-02 23:46:02 +00:00
|
|
|
pull_request:
|
2023-07-21 14:14:31 +00:00
|
|
|
push:
|
2023-08-02 23:46:02 +00:00
|
|
|
branches: main
|
2023-07-21 14:14:31 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-08-02 23:46:02 +00:00
|
|
|
black:
|
2023-07-21 14:14:31 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.10'
|
|
|
|
|
|
|
|
- name: Install dependencies with pip
|
|
|
|
run: |
|
2023-08-11 03:45:37 +00:00
|
|
|
pip install black flake8 Flake8-pyproject
|
2023-07-21 14:14:31 +00:00
|
|
|
|
|
|
|
# - run: isort --check-only .
|
|
|
|
- run: black --check .
|
2023-08-11 03:32:31 +00:00
|
|
|
- run: flake8
|