Skip to content

Commit 29b5c8b

Browse files
authored
Merge pull request #6 from tisnik/black-linter-on-ci
Black linter on CI
2 parents b1d3317 + b3ecbe2 commit 29b5c8b

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/black.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Black
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
black:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.11'
18+
- name: Python version
19+
run: python --version
20+
- name: PDM installation
21+
run: pip install --user pdm
22+
- name: Install devel dependencies
23+
run: pdm install --dev
24+
- name: Black version
25+
run: pdm run black --version
26+
- name: Black check
27+
run: pdm run black . --check

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ license = {file = "LICENSE"}
1212
Homepage = "https://github.com/lightspeed-core/lightspeed-stack"
1313
Issues = "https://github.com/lightspeed-core/lightspeed-stack/issues"
1414

15-
1615
[tool.pdm]
1716
distribution = true
17+
18+
[dependency-groups]
19+
dev = [
20+
"black>=25.1.0"
21+
]

0 commit comments

Comments
 (0)