Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Apr 1, 2023
1 parent 35e9865 commit f30acab
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pyshell: ## start a django shell
docker-compose exec api ./manage.py shell

black: ## run the Black formatter on the Python code
black --line-length 120 --target-version py39 --exclude migrations ./api
black --line-length 120 --target-version py311 --exclude migrations ./api

## [TEST]
test: ## run all tests
Expand Down
1 change: 0 additions & 1 deletion api/blog/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion api/blog/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class IsUserOrReadOnly(permissions.BasePermission):
"""

def has_object_permission(self, request, view, obj):

if request.method in permissions.SAFE_METHODS:
return True

Expand Down
1 change: 0 additions & 1 deletion api/buildings/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class Command(BaseCommand):

help = "generate X number of Fake Buildings"

def add_arguments(self, parser):
Expand All @@ -33,6 +32,7 @@ def handle(self, *args, **options):
).delete()
self.stdout.write(self.style.SUCCESS("Successfully deleted %s building(s)." % (int(buildings_count))))
elif options["create"]:
building_id: int = 0
for building_id in trange(int(options["total_buildings"])):
address = fake.address()
risk_category = random.choice(["NA", "U1", "U2", "U3", "U4", "RS1", "RS2", "RS3", "RS4"])
Expand Down
1 change: 0 additions & 1 deletion api/pages/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

4 changes: 2 additions & 2 deletions api/static_custom/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@


class StaticCustomConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'static_custom'
default_auto_field = "django.db.models.BigAutoField"
name = "static_custom"

0 comments on commit f30acab

Please sign in to comment.