Skip to content

Commit e2a035a

Browse files
authored
Merge pull request #13 from oliv10/github-actions-black-python-formatting
✨ Add Python formatting settings to VSCode 🐍
2 parents 8fb4141 + 2635d89 commit e2a035a

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.devcontainer/devcontainer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"extensions": [
1111
"TabbyML.vscode-tabby",
1212
"ms-azuretools.vscode-docker",
13-
"github.vscode-github-actions"
13+
"github.vscode-github-actions",
14+
"ms-python.black-formatter"
1415
]
1516
}
1617
}

.vscode/settings.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,12 @@
33
"tests"
44
],
55
"python.testing.unittestEnabled": false,
6-
"python.testing.pytestEnabled": true
6+
"python.testing.pytestEnabled": true,
7+
"[python]": {
8+
"editor.defaultFormatter": "ms-python.black-formatter",
9+
"editor.formatOnSave": true,
10+
"editor.formatOnSaveMode": "modificationsIfAvailable",
11+
"editor.formatOnType": true,
12+
"editor.formatOnPaste": true
13+
}
714
}

tests/test_token.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22
from datetime import datetime, timedelta
3-
from FastAuth.token import Token, SECRET_KEY, ALGORITHM
3+
from fastauth.token import Token, SECRET_KEY, ALGORITHM
44
import jwt
55

66
# Sample User data

0 commit comments

Comments
 (0)