Skip to content

Commit e4a9d90

Browse files
committed
Fix flake8 warnings.
1 parent 5f3fc74 commit e4a9d90

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

.flake8

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[flake8]
2+
# W503: line break before binary operator
3+
# W504: line break after binary operator
4+
# E203: whitespace before ':'
5+
# E501: Line too long
6+
ignore=W503,W504,E203,E501
27
exclude =
38
.git,
49
__pycache__,
510
.cache
6-
max-line-length = 150

server.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
# Load .env from the same directory as this file.
1111
load_dotenv(path.join(path.dirname(__file__), ".env"))
1212

13-
import sentry_sdk
14-
from flask import Flask, Response, abort
15-
from flask_caching import Cache
16-
from jinja2 import Environment, FileSystemLoader
17-
from requests_cache.backends.sqlite import get_cache_path
18-
from sentry_sdk.integrations.flask import FlaskIntegration
19-
20-
from to_rss import USE_CACHE_DIR
21-
from to_rss.nhl import VALID_TEAMS, nhl_news, team_news
22-
from to_rss.patreon import patreon_posts
23-
from to_rss.players_tribune import VALID_SPORTS, sports_news
24-
from to_rss.pottermore import pottermore_page
25-
from to_rss.thunderbird import thunderbird_status_meetings
26-
from to_rss.wikipedia import get_articles
13+
import sentry_sdk # noqa: E402
14+
from flask import Flask, Response, abort # noqa: E402
15+
from flask_caching import Cache # noqa: E402
16+
from jinja2 import Environment, FileSystemLoader # noqa: E402
17+
from requests_cache.backends.sqlite import get_cache_path # noqa: E402
18+
from sentry_sdk.integrations.flask import FlaskIntegration # noqa: E402
19+
20+
from to_rss import USE_CACHE_DIR # noqa: E402
21+
from to_rss.nhl import VALID_TEAMS, nhl_news, team_news # noqa: E402
22+
from to_rss.patreon import patreon_posts # noqa: E402
23+
from to_rss.players_tribune import VALID_SPORTS, sports_news # noqa: E402
24+
from to_rss.pottermore import pottermore_page # noqa: E402
25+
from to_rss.thunderbird import thunderbird_status_meetings # noqa: E402
26+
from to_rss.wikipedia import get_articles # noqa: E402
2727

2828
# Configure a file system cache to store responses for 5 minutes. With the
2929
# requests cache we might return data that's ~20 minutes old.

to_rss/thunderbird.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from to_rss import get_session
88

9-
STATUS_MEETINGS_DOC = "https://docs.google.com/document/d/e/2PACX-1vTWWRaJg6vfM73FWPZtJHv0uQJHnYbVM35cxmGaW1HHtsdvXkdASU0K5NpaW4Vhva0A5OHFOTpSRe3u/pub"
9+
STATUS_MEETINGS_DOC = "https://docs.google.com/document/d/e/2PACX-1vTWWRaJg6vfM73FWPZtJHv0uQJHnYbVM35cxmGaW1HHtsdvXkdASU0K5NpaW4Vhva0A5OHFOTpSRe3u/pub" # noqa: E501
1010

1111

1212
def _clean_html(element) -> None:

0 commit comments

Comments
 (0)