MAINT: Apply pre-commit

Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
This commit is contained in:
Martin Thoma
2022-03-05 09:29:23 +01:00
parent f5e33ae38f
commit e64fb6795c
536 changed files with 6267 additions and 5556 deletions

View File

@@ -21,16 +21,17 @@
#
########################################################
import math, time
import math
import time
# Constants
STRINGS = ('Creative', 'Computing') # Text to display
STRINGS = ("Creative", "Computing") # Text to display
MAX_LINES = 160
STEP_SIZE = 0.25 # Number of radians to increase at each
# line. Controls speed of horizontal
# printing movement.
CENTER = 26 # Controls left edge of "middle" string
DELAY = 0.05 # Amount of seconds to wait between lines
STEP_SIZE = 0.25 # Number of radians to increase at each
# line. Controls speed of horizontal
# printing movement.
CENTER = 26 # Controls left edge of "middle" string
DELAY = 0.05 # Amount of seconds to wait between lines
# Display "intro" text
@@ -46,10 +47,10 @@ width = CENTER - 1
# "Start long loop"
for line_num in range(MAX_LINES):
# Get string to display on this line
curr_string = STRINGS[string_index]
# Calculate how far over to print the text
sine = math.sin(radians)
padding = int(CENTER + width * sine)
@@ -65,7 +66,6 @@ for line_num in range(MAX_LINES):
time.sleep(DELAY)
########################################################
#
# Porting Notes
@@ -106,10 +106,3 @@ for line_num in range(MAX_LINES):
# What happens? Why? How would you fix it?
#
########################################################