Skip to content

Commit 8856d6c

Browse files
authored
Merge pull request #26 from Lab-Lab-Lab/main
get the formatting workflow
2 parents e94ca8a + 277ddad commit 8856d6c

File tree

19 files changed

+1326
-1
lines changed

19 files changed

+1326
-1
lines changed

.github/workflows/format.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check Python Code Formatting
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
format-check:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12.x"
20+
21+
- name: Install Black
22+
run: pip install black
23+
24+
- name: Run Black
25+
run: black . --check

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
"[python]": {
33
"editor.defaultFormatter": "ms-python.black-formatter",
44
"editor.formatOnSave": true
5-
}
5+
},
6+
"editor.formatOnPaste": true,
7+
"editor.formatOnSave": true
68
}

config/settings/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
"teleband.instruments",
9191
"teleband.musics",
9292
"teleband.submissions",
93+
"teleband.dashboards",
9394
]
9495
# https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
9596
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS

config/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
SpectacularSwaggerView.as_view(url_name="schema"),
2727
name="swagger-ui",
2828
),
29+
path("dashboards/", include("teleband.dashboards.urls", namespace="dashboards")),
2930
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
3031
if settings.DEBUG:
3132
# Static file serving when using Gunicorn + Uvicorn for local web socket development

docs/downloaded.txt

Lines changed: 479 additions & 0 deletions
Large diffs are not rendered by default.

docs/get_recordings-from-s3.sh

Lines changed: 474 additions & 0 deletions
Large diffs are not rendered by default.

teleband/dashboards/__init__.py

Whitespace-only changes.

teleband/dashboards/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.

teleband/dashboards/apps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class DashboardConfig(AppConfig):
5+
default_auto_field = "django.db.models.BigAutoField"
6+
name = "teleband.dashboards"

teleband/dashboards/migrations/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)