Skip to content

Commit 02da7f0

Browse files
author
Eric Lopes
committed
Update {{cookiecutter.project_slug}}/.github/workflows/check-code.yaml (#13)
Reviewed-on: https://gitea.eol.myds.me/cluster-projects/python-project-template/pulls/13
1 parent 14a3732 commit 02da7f0

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed
Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
{% raw %}
2-
name: Check Code standards
3-
4-
on:
5-
push:
6-
7-
jobs:
8-
set-up-docker:
9-
runs-on: ubuntu-latest
10-
steps:
11-
-
12-
name: Checkout
13-
uses: actions/checkout@v4
14-
-
15-
name: Install ruff and black
16-
run: |
17-
apt update && apt install -y python3-pip && pip install ruff black
18-
-
19-
name: run ruff
20-
run: |
21-
ruff check **/*.py
22-
-
23-
name: run poetry
24-
run: |
25-
black **/*.py
26-
{% endraw %}
1+
{% raw %}
2+
name: Check Code standards
3+
4+
on:
5+
push:
6+
7+
jobs:
8+
set-up-docker:
9+
runs-on: ubuntu-latest
10+
steps:
11+
-
12+
name: Checkout
13+
uses: actions/checkout@v4
14+
-
15+
name: Install ruff and black
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install black ruff
19+
-
20+
name: run ruff
21+
run: |
22+
ruff check **/*.py
23+
-
24+
name: run poetry
25+
run: |
26+
black **/*.py
27+
{% endraw %}

0 commit comments

Comments
 (0)