Skip to content

Commit

Permalink
add lint to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
janiceblue committed Sep 11, 2024
1 parent d3cc9bc commit ef29627
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: style
run-name: Style test by ${{ github.actor }}

on: [push, pull_request]

jobs:
style-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Black check
run: |
pip install black==22.12.0
black --diff --check projects
- name: isort check
run: |
pip install isort==5.13.2
isort --profile black --check projects

0 comments on commit ef29627

Please sign in to comment.