Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/black23 #27

Closed
wants to merge 18 commits into from
Closed

test/black23 #27

wants to merge 18 commits into from

Conversation

rickstaa
Copy link
Owner

@rickstaa rickstaa commented Jan 3, 2021

Comment on lines +4 to +5
import sys # F401 'os' imported but unused
import os # F401 'os' imported but unused
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format-fix] reported by reviewdog 🐶

Suggested change
import sys # F401 'os' imported but unused
import os # F401 'os' imported but unused
import sys # F401 'os' imported but unused
import os # F401 'os' imported but unused

name = input("Hello! What is your name?\n")

number = random.randint(1, 20)
print("Well, {0}, I am thinking of a number between 1 and 20.".format(name)) # E501 line too long (80 > 79 characters)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format-fix] reported by reviewdog 🐶

Suggested change
print("Well, {0}, I am thinking of a number between 1 and 20.".format(name)) # E501 line too long (80 > 79 characters)
print(
"Well, {0}, I am thinking of a number between 1 and 20.".format(name)
) # E501 line too long (80 > 79 characters)

else:
print("Nope. The number I was thinking of was {0}".format(number))

import itertools # E402 module level import not at top of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format-fix] reported by reviewdog 🐶

Suggested change
import itertools # E402 module level import not at top of file
import itertools # E402 module level import not at top of file

Comment on lines +3 to +4
import pwd # F401 'os' imported but unused
import grp # F401 'os' imported but unused
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format-fix] reported by reviewdog 🐶

Suggested change
import pwd # F401 'os' imported but unused
import grp # F401 'os' imported but unused
import pwd # F401 'os' imported but unused
import grp # F401 'os' imported but unused

print("Let's play a small queen problem game to test the flake8 github action.")
print("This game is taken from https://wiki.python.org/moin/SimplePrograms.")

class BailOut(Exception):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format-fix] reported by reviewdog 🐶

Suggested change
class BailOut(Exception):
class BailOut(Exception):

def validate(queens):
left = right = col = queens[-1] # E501 line too long (80 > 79 characters). Long description text
for r in reversed(queens[:-1]):
left, right = left-1, right+1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format-fix] reported by reviewdog 🐶

Suggested change
left, right = left-1, right+1
left, right = left - 1, right + 1

left, right = left-1, right+1
if r in (left, col, right):
raise BailOut

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format-fix] reported by reviewdog 🐶

Suggested change

pass
raise BailOut

queens = add_queen([])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format-fix] reported by reviewdog 🐶

Suggested change
queens = add_queen([])
queens = add_queen([])

Comment on lines +37 to +38
print (queens)
print ("\n".join(". "*q + "Q " + ". "*(BOARD_SIZE-q-1) for q in queens))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format-fix] reported by reviewdog 🐶

Suggested change
print (queens)
print ("\n".join(". "*q + "Q " + ". "*(BOARD_SIZE-q-1) for q in queens))
print(queens)
print("\n".join(". " * q + "Q " + ". " * (BOARD_SIZE - q - 1) for q in queens))

print (queens)
print ("\n".join(". "*q + "Q " + ". "*(BOARD_SIZE-q-1) for q in queens))

import dis # E402 module level import not at top of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format-fix] reported by reviewdog 🐶

Suggested change
import dis # E402 module level import not at top of file
import dis # E402 module level import not at top of file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant