Skip to content

Commit 248e7d7

Browse files
committed
Update workflow to include poetry installation
1 parent 0348e26 commit 248e7d7

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/precommit.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,27 @@ jobs:
1717
with:
1818
python-version: "3.11"
1919

20-
- name: Install Pylint
21-
run: pip install pylint
20+
#----------------------------------------------
21+
# ----- install & configure poetry -----
22+
#----------------------------------------------
23+
- name: Install Poetry
24+
uses: snok/install-poetry@v1
25+
with:
26+
version: 1.8.3
27+
virtualenvs-create: false
28+
virtualenvs-in-project: true
29+
installer-parallel: true
30+
31+
#----------------------------------------------
32+
# ----- install dependencies -----
33+
#----------------------------------------------
34+
- name: Install dependencies
35+
run: |
36+
poetry install --no-interaction --no-root --with dev
2237
2338
- name: Lint check
2439
run: pylint --disable=R,C application_examples examples
2540

26-
- name: Install Black formatter
27-
run: pip install black
28-
2941
- name: Code style check
3042
run: black . --check
3143

0 commit comments

Comments
 (0)