Skip to content

Commit 377824c

Browse files
committed
ci: check black formatting
1 parent 1b8a85a commit 377824c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ on:
66
pull_request:
77

88
jobs:
9+
fmt:
10+
runs-on: "ubuntu-latest"
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: "3.x"
18+
19+
- run: pip install black
20+
21+
- run: black --check .
22+
923
build:
1024
name: ${{ matrix.python-version }} ${{ matrix.platform.os }}-${{ matrix.platform.python-architecture }}
1125
runs-on: ${{ matrix.platform.os }}

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]
66
write_to = "setuptools_rust/version.py"
7+
8+
[tool.isort]
9+
profile = "black"

0 commit comments

Comments
 (0)