Skip to content

Commit 8bf8d03

Browse files
committed
fix black
1 parent e0f5c78 commit 8bf8d03

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@
4343
* Twilio (SemVer) is supported till latest major version - 1 (e.g 9.x.x - 1 = version 8.x.x and higher)
4444
* html2text (CalVer) is supported till current calendar year - 1 (e.g. 2025 - 1 = version 2024.x.x and newer)
4545

46+
## Code Style
47+
48+
### Python Code
49+
50+
To format your code with Black, open a terminal and ensure your virtual environment is activated.
51+
52+
```bash
53+
uv run black .
54+
```
55+
4656
## Running Tests
4757

4858
This will run tests with a SQLite3 in-memory database and coverage:

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import sys
22

3-
sys.stderr.write(
4-
"""\
3+
sys.stderr.write("""\
54
===============================
65
Unsupported installation method
76
===============================
87
This project no longer supports installation with `python setup.py install .`.
98
Please use `python -m pip install .` instead.
10-
"""
11-
)
9+
""")
1210
sys.exit(1)

src/herald/urls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from .views import TestNotification, TestNotificationList
44

5-
65
urlpatterns = [
76
re_path(r"^$", TestNotificationList.as_view(), name="herald_preview_list"),
87
re_path(

tests/urls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from django.contrib.auth import urls as auth_urls
33
from django.urls import include, re_path
44

5-
65
urlpatterns = [
76
re_path(r"^admin/", admin.site.urls),
87
re_path("^", include(auth_urls)),

0 commit comments

Comments
 (0)