Spaces:
Running
Running
feat: add isort action
Browse files- .github/workflows/style.yml +20 -0
- pyproject.toml +2 -0
.github/workflows/style.yml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Lint
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches: [main]
|
6 |
+
pull_request:
|
7 |
+
branches: [main]
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
lint:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
steps:
|
13 |
+
- uses: actions/checkout@v2
|
14 |
+
- uses: psf/black@stable
|
15 |
+
- uses: actions/setup-python@v2
|
16 |
+
with:
|
17 |
+
python-version: 3.9
|
18 |
+
- name: Install requirements
|
19 |
+
run: pip install ".[dev]"
|
20 |
+
- uses: jamescurtin/isort-action@master
|
pyproject.toml
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[tool.isort]
|
2 |
+
profile = "black"
|