Skip to content

Commit 3342901

Browse files
committed
add black to CI
1 parent 1432c0e commit 3342901

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,32 @@ jobs:
9494
pdm install -G:all
9595
9696
- name: Check import formatting
97+
run: |
98+
pdm run isort --check --verbose
99+
100+
black:
101+
name: black
102+
runs-on: ubuntu-latest
103+
steps:
104+
- name: Checkout
105+
uses: actions/checkout@v4
106+
with:
107+
fetch-depth: 0
108+
109+
- name: Set up Python 3.13
110+
uses: actions/setup-python@v4
111+
with:
112+
python-version: "3.13"
113+
114+
- name: Install PDM
115+
run: |
116+
python -m pip install --upgrade pip
117+
pip install pdm
118+
119+
- name: Install dependencies
120+
run: |
121+
pdm install -G:all
122+
123+
- name: Check code style
97124
run: |
98125
pdm run isort --check --verbose

0 commit comments

Comments
 (0)