Skip to content

Commit b49ff19

Browse files
Black formatting checks to run on PR branch (#417)
* Black formatting checks to run on PR head * fix the failing lint error
1 parent cb3a6f6 commit b49ff19

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/black.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Black
2-
on:
3-
pull_request_target:
4-
types: [opened, synchronize, reopened]
2+
on:
3+
pull_request:
4+
branches:
5+
- "main"
56
push:
67
branches:
7-
- '**'
8+
- "main"
89

910
jobs:
1011
lint:
@@ -14,4 +15,4 @@ jobs:
1415
- uses: psf/black@stable
1516
with:
1617
options: "--check --verbose"
17-
version: "22.3.0"
18+
version: "22.3.0"

src/autolabel/database/engine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Having one global SQLite database in ~ is a poor idea, since
1010
# SQLite cannot handle multiple simultaneous writes (if you have
1111
# several different labeling jobs going on).
12-
#DB_PATH = join(expanduser("~"), ".autolabel.db")
12+
# DB_PATH = join(expanduser("~"), ".autolabel.db")
1313

1414
DB_PATH = ".autolabel.db"
1515

0 commit comments

Comments
 (0)