Skip to content

Commit 1b84887

Browse files
committed
Format code (black/isort)
1 parent df4c1cc commit 1b84887

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ retest:
1313
coverage:
1414
py.test --cov=django_session_timeout --cov-report=term-missing --cov-report=html
1515

16+
format:
17+
isort --recursive src tests
18+
black src/ tests/
19+
1620
docs:
1721
$(MAKE) -C docs html
1822

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ def pytest_configure():
1919
SESSION_ENGINE="django.contrib.sessions.backends.cache",
2020
DATABASES={
2121
"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": "db.sqlite"}
22-
}
22+
},
2323
)

tests/test_middleware.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import pytest
2-
from freezegun import freeze_time
3-
from django_session_timeout.middleware import SESSION_TIMEOUT_KEY
42
from django.contrib.sessions.middleware import SessionMiddleware
3+
from freezegun import freeze_time
54

6-
from django_session_timeout.middleware import SessionTimeoutMiddleware
5+
from django_session_timeout.middleware import (
6+
SESSION_TIMEOUT_KEY,
7+
SessionTimeoutMiddleware,
8+
)
79

810

911
@pytest.fixture(scope="function")

0 commit comments

Comments
 (0)