Skip to content

Commit 4ae67e6

Browse files
committed
Implement Ruff formatting for entire codebase
Context: - This is a big change, but it is functionality identical - Explicit imports for some files make the diff very large - I set line length to 120 which is standard in Python - Some files used tabs instead of spaces (!) - now fixed
1 parent 6b909c8 commit 4ae67e6

32 files changed

+2045
-2873
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ format: # Format the source code
8383
uv run ruff check . --fix --extend-exclude '.+/scripts/.+'
8484

8585
format-check: # Check the source code has been formatted
86-
black . --check --extend-exclude '.+/scripts/.+'
86+
uv run ruff check . --extend-exclude '.+/scripts/.+'
8787

8888
pull:
8989
git checkout master

Resources/scripts/data/gen8/ability_names.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import csv
22
import os
3+
34
from read_swsh import TextFile
45

56
# data_path contains the countents of the `message` folder found in sword/shield's romfs:/bin/

Resources/scripts/data/gen8/move_names.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import csv
22
import os
3+
34
from read_swsh import TextFile
45

56
# data_path contains the countents of the `message` folder found in sword/shield's romfs:/bin/

0 commit comments

Comments
 (0)