Skip to content

Commit 6fcfd78

Browse files
committed
fix: linter
1 parent 5bb2d52 commit 6fcfd78

File tree

8 files changed

+24
-25
lines changed

8 files changed

+24
-25
lines changed

Diff for: budget/apps.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
class BudgetConfig(AppConfig):
5-
default_auto_field = 'django.db.models.BigAutoField'
6-
name = 'budget'
5+
default_auto_field = "django.db.models.BigAutoField"
6+
name = "budget"

Diff for: budget/migrations/0001_initial.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@ class Migration(migrations.Migration):
77

88
initial = True
99

10-
dependencies = [
11-
]
10+
dependencies = []
1211

1312
operations = [
1413
migrations.CreateModel(
15-
name='Budget',
14+
name="Budget",
1615
fields=[
17-
('id', models.AutoField(primary_key=True, serialize=False)),
18-
('username', models.UUIDField()),
19-
('amount', models.IntegerField()),
20-
('created_at', models.DateTimeField(auto_now_add=True)),
21-
('updated_at', models.DateTimeField(auto_now=True)),
16+
("id", models.AutoField(primary_key=True, serialize=False)),
17+
("username", models.UUIDField()),
18+
("amount", models.IntegerField()),
19+
("created_at", models.DateTimeField(auto_now_add=True)),
20+
("updated_at", models.DateTimeField(auto_now=True)),
2221
],
2322
),
2423
]

Diff for: user_expense_type/admin.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from django.contrib import admin
22
from .models import UserExpenseType
33

4+
45
@admin.register(UserExpenseType)
56
class UserExpenseTypeAdmin(admin.ModelAdmin):
67
list_display = ("username", "name", "category_name", "created_at", "updated_at")

Diff for: user_expense_type/apps.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
class UserExpenseTypeConfig(AppConfig):
5-
default_auto_field = 'django.db.models.BigAutoField'
6-
name = 'user_expense_type'
5+
default_auto_field = "django.db.models.BigAutoField"
6+
name = "user_expense_type"

Diff for: user_expense_type/migrations/0001_initial.py

+10-11
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,20 @@ class Migration(migrations.Migration):
77

88
initial = True
99

10-
dependencies = [
11-
]
10+
dependencies = []
1211

1312
operations = [
1413
migrations.CreateModel(
15-
name='UserExpenseType',
14+
name="UserExpenseType",
1615
fields=[
17-
('id', models.AutoField(primary_key=True, serialize=False)),
18-
('username', models.UUIDField()),
19-
('name', models.CharField(default='Personal', max_length=70)),
20-
('description', models.CharField(blank=True, max_length=255, null=True)),
21-
('set_by_user', models.BooleanField(default=False)),
22-
('category_name', models.CharField(max_length=70)),
23-
('created_at', models.DateTimeField(auto_now_add=True)),
24-
('updated_at', models.DateTimeField(auto_now=True)),
16+
("id", models.AutoField(primary_key=True, serialize=False)),
17+
("username", models.UUIDField()),
18+
("name", models.CharField(default="Personal", max_length=70)),
19+
("description", models.CharField(blank=True, max_length=255, null=True)),
20+
("set_by_user", models.BooleanField(default=False)),
21+
("category_name", models.CharField(max_length=70)),
22+
("created_at", models.DateTimeField(auto_now_add=True)),
23+
("updated_at", models.DateTimeField(auto_now=True)),
2524
],
2625
),
2726
]

Diff for: user_expense_type/models.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from django.db import models
22
from django.conf import settings
33

4+
45
class UserExpenseType(models.Model):
56
id = models.AutoField(primary_key=True)
67
username = models.UUIDField()

Diff for: user_expense_type/serializers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Meta:
1717

1818
def create(self, validated_data):
1919
return UserExpenseType.objects.create(**validated_data)
20-
20+
2121
def update(self, instance, validated_data):
2222
instance.name = validated_data.get("name", instance.name)
2323
instance.description = validated_data.get("description", instance.description)

Diff for: user_expense_type/views.py

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def list(self, request):
3838
except Exception as e:
3939
return Response({"error": str(e)}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
4040

41-
4241
@cognito_authenticated
4342
def create(self, request):
4443
try:

0 commit comments

Comments
 (0)