changeset 49525086aaf7 in www.tryton.org:default details: https://hg.tryton.org/www.tryton.org?cmd=changeset&node=49525086aaf7 description: Apply isort and configure flake8 diffstat:
.flake8 | 2 ++ .isort.cfg | 2 ++ app.py | 12 ++++++------ 3 files changed, 10 insertions(+), 6 deletions(-) diffs (49 lines): diff -r 28191481ec69 -r 49525086aaf7 .flake8 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.flake8 Tue Feb 08 09:54:37 2022 +0100 @@ -0,0 +1,2 @@ +[flake8] +ignore=E123,E124,E126,E128,E741,W503 diff -r 28191481ec69 -r 49525086aaf7 .isort.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.isort.cfg Tue Feb 08 09:54:37 2022 +0100 @@ -0,0 +1,2 @@ +[settings] +multi_line_output=4 diff -r 28191481ec69 -r 49525086aaf7 app.py --- a/app.py Sun Jan 30 12:49:01 2022 +0100 +++ b/app.py Tue Feb 08 09:54:37 2022 +0100 @@ -8,27 +8,27 @@ import os import re import unicodedata - from collections import OrderedDict, namedtuple from functools import partial from http import HTTPStatus from logging.handlers import SMTPHandler +from operator import attrgetter from random import sample, shuffle -from operator import attrgetter from urllib.parse import urlparse import requests from colorthief import ColorThief -from flask import (Flask, render_template, redirect, url_for, request, - make_response, abort) +from flask import ( + Flask, abort, make_response, redirect, render_template, request, url_for) from flask.logging import default_handler from flask_caching import Cache -from flask_cdn import CDN, url_for as _cdn_url_for +from flask_cdn import CDN +from flask_cdn import url_for as _cdn_url_for from flask_gravatar import Gravatar from flask_sitemap import Sitemap from icalendar import Calendar from jinja2 import TemplateNotFound -from lxml import objectify, html +from lxml import html, objectify from werkzeug.middleware.proxy_fix import ProxyFix NEWS_URL = 'https://discuss.tryton.org/c/news'
