Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit efea3ee

Browse files
committed
Enforce Python code style
1 parent f85b60a commit efea3ee

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/style.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Code Style
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
tags-ignore: ["**"]
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
12+
black:
13+
14+
name: black
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
19+
- name: "🔀 Checkout repository"
20+
uses: actions/checkout@v2
21+
22+
- name: '🐍 Initialize Python'
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.8
26+
27+
- name: "📝 Black Code Formatter"
28+
uses: psf/black@stable
29+
with:
30+
options: --check --diff --color
31+
32+
isort:
33+
34+
name: isort
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
39+
- name: "🔀 Checkout repository"
40+
uses: actions/checkout@v2
41+
42+
- name: '🐍 Initialize Python'
43+
uses: actions/setup-python@v2
44+
with:
45+
python-version: 3.8
46+
47+
- name: "📝 isort"
48+
uses: isort/isort-action@master
49+
with:
50+
configuration: --check --diff --color

0 commit comments

Comments
 (0)