Skip to content

Commit

Permalink
Merge pull request #4 from pybee/beekeeper
Browse files Browse the repository at this point in the history
Added beekeeper configuration.
  • Loading branch information
freakboy3742 committed Jan 1, 2018
2 parents 1b40b04 + 615e17c commit f259899
Show file tree
Hide file tree
Showing 35 changed files with 28 additions and 47 deletions.
14 changes: 14 additions & 0 deletions beekeeper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pull_request:
- beefore:
name: Prebuild checks
subtasks:
- pycodestyle:
name: Python lint checks
task: beefore
push:
- beefore:
name: Prebuild checks
subtasks:
- pycodestyle:
name: Python lint checks
task: beefore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

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 @@ -52,14 +52,14 @@ def clear_screen():
#
# But though we're in "raw" mode, we can't answer the question "has the
# user typed
# key or not?" To do *that*, you need to use an operating system call called
# `select`. Select is a method used to inspect the status of "pipes" of content
# to determine if any content is ready. The keyboard in an "input pipe"; the
# screen is an "output pipe". Select waits until a specific pipe has content
# available; you also provide a timeout which is the maximum length of time
# that the select call will wait until content is available. This timeout can
# be "0 seconds", or it can be as long as you're willing to wait.

# key or not?" To do *that*, you need to use an operating system call
# called `select`. Select is a method used to inspect the status of
# "pipes" of content to determine if any content is ready. The keyboard
# in an "input pipe"; the screen is an "output pipe". Select waits until
# a specific pipe has content available; you also provide a timeout which
# is the maximum length of time that the select call will wait until
# content is available. This timeout can be "0 seconds", or it can be
# as long as you're willing to wait.
def getch(timeout=None):
# If we aren't using a timeout, we can just read from the input pipe.
# If we *do* have a timeout, use the select call to wait until input
Expand All @@ -69,7 +69,8 @@ def getch(timeout=None):
else:
ch = None

# Return the character that was read - or None, if no character was pressed.
# Return the character that was read
# - or None, if no character was pressed.
return ch

# Now we can start the actual game.
Expand All @@ -85,8 +86,8 @@ def getch(timeout=None):
clear_screen()

# random.random() returns a floating point number in the range 0 -> 1
# Add 0.5 to get a number between 0.5 and 1.5. That's how long we'll sleep
# before displaying some eyes.
# Add 0.5 to get a number between 0.5 and 1.5. That's how long we'll
# sleep before displaying some eyes.
time.sleep(random.random() + 0.5)

# Pick a random zone in which to display the eyes.
Expand Down Expand Up @@ -132,7 +133,8 @@ def getch(timeout=None):
finally:
# No matter what happens, clean up after yourself.

# Use the ?25h ANSI escape code to restore the cursor, and ?12l to turn on local echo
# Use the ?25h ANSI escape code to restore the cursor,
# and ?12l to turn on local echo
print('\033[?25h\033[?12l')

# No matter what happens, drain the input pipe, and restore to
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

3 changes: 0 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,3 @@
author, 'yorkshire4', 'One line description of project.',
'Miscellaneous'),
]



0 comments on commit f259899

Please sign in to comment.