Increase line length limit to 100

Up from 80.
This commit is contained in:
Midgard 2019-09-11 16:01:49 +02:00 committed by Jan-Pieter Baert
parent 48641adf90
commit 0af72376a1
No known key found for this signature in database
GPG key ID: B19186932178234A
5 changed files with 10 additions and 10 deletions

View file

@ -375,7 +375,7 @@ indent-after-paren=4
indent-string=' '
# Maximum number of characters on a single line.
max-line-length=80
max-line-length=100
# Maximum number of lines in a module.
max-module-lines=1000

View file

@ -58,7 +58,7 @@ def register_plugins(app: Flask) -> Manager:
airbrake = Airbrake(project_id=app.config["AIRBRAKE_ID"],
api_key=app.config["AIRBRAKE_KEY"])
# ugly hack to make this work for out errbit
airbrake._api_url = "http://errbit.awesomepeople.tv/api/v3/projects/{}/notices".format( # pylint: disable=C0301,W0212
airbrake._api_url = "http://errbit.awesomepeople.tv/api/v3/projects/{}/notices".format( # pylint: disable=W0212
airbrake.project_id
)

View file

@ -39,9 +39,9 @@ def add_all() -> None:
def recreate_from_scratch() -> None:
"Recreate a completely new database"
confirmation = "Are you very very sure? (Will delete previous entries!) (y/N) " # pylint: disable=C0301
confirmation = "Are you very very sure? (Will delete previous entries!) (y/N) "
check = "I acknowledge any repercussions!"
if input(confirmation) in yes and input("Type: '{}' ".format(check)) == check: # pylint: disable=C0301
if input(confirmation) in yes and input("Type: '{}' ".format(check)) == check:
print("Resetting the database!")
db.drop_all()
db.create_all()
@ -58,14 +58,14 @@ def add_to_current() -> None:
).rstrip(", ")
while input("Do you still want to add something? (Y/n) ") not in no:
print("What do you want to add? (Use numbers, or A for all, or C for cancel) ") # pylint: disable=C0301
print("What do you want to add? (Use numbers, or A for all, or C for cancel) ")
answer = input("Available: {} : ".format(add_numbers()))
if answer == "A":
add_all()
available = []
elif answer == "C":
pass
elif answer.isnumeric() and answer in [str(x) for x in range(len(available))]: # pylint: disable=C0301
elif answer.isnumeric() and answer in [str(x) for x in range(len(available))]:
answer_index = int(answer)
print("Adding {}.".format(available[answer_index]))
entry_sets[str(available[answer_index])]()

View file

@ -1,7 +1,7 @@
"The base file for everything related to the models"
# pylint: disable=C0301
# This file will expose what we want from the models module
# This will probably be everything. But putting the imports here makes it possible to import all models in one line like this:
# This file will expose what we want from the models module.
# This will probably be everything. But putting the imports here makes it possible to import all
# models in one line like this:
#
# from models import User, Item, ...
#

View file

@ -147,7 +147,7 @@ def item_paid(order_id: int, item_id: int) -> typing.Optional[Response]:
@order_bp.route("/<order_id>/<user_name>/user_paid", methods=["POST"])
@login_required
# pylint: disable=R1710
def items_user_paid(order_id: int, user_name: str) -> typing.Optional[Response]: # pylint:disable=C0301
def items_user_paid(order_id: int, user_name: str) -> typing.Optional[Response]:
"Indicate payment status for a user in an order"
user = User.query.filter(User.username == user_name).first()
items: typing.List[OrderItem] = []