Skip to content

Commit 50d6247

Browse files
nitsujriPetrDlouhy
authored andcommittedMay 9, 2023
Adding back lines_after_imports = 2
1 parent 65048e6 commit 50d6247

File tree

13 files changed

+15
-0
lines changed

13 files changed

+15
-0
lines changed
 

‎docs/conf.py

+3
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@
2020
import os
2121
import sys
2222

23+
2324
# sys.path.insert(0, os.path.abspath('.'))
2425

2526
hordak_dir = os.path.abspath("..")
2627
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example_project.settings")
2728
sys.path.insert(0, hordak_dir)
2829
import django # noqa E402
2930

31+
3032
django.setup()
3133

3234
# -- General configuration ------------------------------------------------
@@ -92,6 +94,7 @@
9294
#
9395
import sphinx_rtd_theme # noqa E402
9496

97+
9598
html_theme = "sphinx_rtd_theme"
9699

97100
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

‎example_project/settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import dj_database_url
1717

18+
1819
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1920
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
2021

‎example_project/urls.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from django.contrib import admin
1717
from django.urls import include, path
1818

19+
1920
urlpatterns = [
2021
path("admin/", admin.site.urls),
2122
path("", include("hordak.urls", namespace="hordak")),

‎example_project/wsgi.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from django.core.wsgi import get_wsgi_application
1313

14+
1415
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example_project.settings")
1516

1617
application = get_wsgi_application()

‎hordak/admin.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from . import models
88

9+
910
try: # SubquerySum is quicker, but django-sql-utils can remain as optional dependency.
1011
from sql_util.utils import SubquerySum as Sum
1112

‎hordak/defaults.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from django.conf import settings
22

3+
34
INTERNAL_CURRENCY = getattr(settings, "HORDAK_INTERNAL_CURRENCY", "EUR")
45

56
DEFAULT_CURRENCY = getattr(settings, "DEFAULT_CURRENCY", "EUR")

‎hordak/models/core.py

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
from hordak.defaults import DECIMAL_PLACES, MAX_DIGITS
3939
from hordak.utilities.currency import Balance
4040

41+
4142
#: Debit
4243
DEBIT = "debit"
4344
#: Credit

‎hordak/templatetags/hordak.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from hordak.utilities.currency import Balance
1313

14+
1415
register = template.Library()
1516
logger = logging.getLogger(__name__)
1617

‎hordak/tests/utilities/test_currency.py

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
currency_exchange,
2323
)
2424

25+
2526
DUMMY_CACHE = {"default": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache"}}
2627

2728

‎hordak/tests/utilities/test_money.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from hordak.utilities.money import ratio_split
66

7+
78
# Note: these tests assume that sorting is stable across all Python versions.
89

910

‎hordak/urls.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from hordak.views import accounts, statement_csv_import, transactions
44

5+
56
app_name = "hordak"
67

78
urlpatterns = [

‎hordak/utilities/currency.py

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
TradingAccountRequiredError,
6868
)
6969

70+
7071
logger = logging.getLogger(__name__)
7172

7273

‎manage.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import sys
44

5+
56
if __name__ == "__main__":
67
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example_project.settings")
78
try:

0 commit comments

Comments
 (0)