2022-07-15 22:59:23 +00:00
|
|
|
name: Check style
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-07-15 23:11:17 +00:00
|
|
|
branches: [ main ]
|
2022-07-15 22:59:23 +00:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
black:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-01-19 15:38:21 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-07-15 22:59:23 +00:00
|
|
|
- uses: psf/black@stable
|
|
|
|
with:
|
|
|
|
options: "--check --diff"
|
|
|
|
version: "22.3.0"
|
|
|
|
isort:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-01-19 15:38:21 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-03-29 00:41:07 +00:00
|
|
|
- uses: actions/setup-python@v3
|
2022-07-15 22:59:23 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- uses: isort/isort-action@master
|
|
|
|
with:
|
|
|
|
isortVersion: "5.10.1"
|