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
test/black23 #27
Conversation
import sys # F401 'os' imported but unused | ||
import os # F401 'os' imported but unused |
There was a problem hiding this comment.
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 🐶
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) |
There was a problem hiding this comment.
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 🐶
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 |
There was a problem hiding this comment.
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 🐶
import itertools # E402 module level import not at top of file | |
import itertools # E402 module level import not at top of file |
import pwd # F401 'os' imported but unused | ||
import grp # F401 'os' imported but unused |
There was a problem hiding this comment.
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 🐶
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): |
There was a problem hiding this comment.
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 🐶
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 |
There was a problem hiding this comment.
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 🐶
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 | ||
|
There was a problem hiding this comment.
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 🐶
pass | ||
raise BailOut | ||
|
||
queens = add_queen([]) |
There was a problem hiding this comment.
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 🐶
queens = add_queen([]) | |
queens = add_queen([]) |
print (queens) | ||
print ("\n".join(". "*q + "Q " + ". "*(BOARD_SIZE-q-1) for q in queens)) |
There was a problem hiding this comment.
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 🐶
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 |
There was a problem hiding this comment.
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 🐶
import dis # E402 module level import not at top of file | |
import dis # E402 module level import not at top of file |
Tests reviewdog/action-black#26