Skip to content

Commit a1170b4

Browse files
committed
Use Ruff auto formatter
Context: - This commit includes automatic formatting additions
1 parent 424061c commit a1170b4

4 files changed

Lines changed: 2 additions & 5 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ docker-prod:
8080
docker-setup: docker-up docker-migrate docker-build-db # (Docker) Start services, prepare the latest DB schema, populate the DB
8181

8282
format: # Format the source code
83-
black . --extend-exclude '.+/scripts/.+'
83+
uv run ruff check . --fix --extend-exclude '.+/scripts/.+'
8484

8585
format-check: # Check the source code has been formatted
8686
black . --check --extend-exclude '.+/scripts/.+'

Resources/scripts/data/gen8/read_swsh.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import copy
22
import os
33
import struct
4-
import sys
54

65
class TextLine():
76
offset = None
@@ -142,7 +141,7 @@ def __GetLineString(this, data):
142141
# Cast 2 bytes to figure out what to do next
143142
value = struct.unpack_from("<H", data, i)[0]
144143
if (value == this.__KEY_TERMINATOR):
145-
break;
144+
break
146145
i += 2
147146

148147
if (value == this.__KEY_TERMINATOR):

data/v2/build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import os
1616
import os.path
1717
import re
18-
import json
1918
from django.db import connection
2019
from pokemon_v2.models import *
2120

pokemon_v2/serializers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from collections import OrderedDict
2-
import json
32
from django.urls import reverse
43
from rest_framework import serializers
54
from drf_spectacular.utils import extend_schema_field

0 commit comments

Comments
 (0)