Skip to content

Commit fce2d54

Browse files
committed
add black to CI
1 parent 8fa44de commit fce2d54

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,31 @@ jobs:
9595
9696
- name: Check import formatting
9797
run: |
98-
pdm run isort --check --verbose
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
124+
run: |
125+
pdm run black --check --verbose

0 commit comments

Comments
 (0)