|
10 | 10 | # Load .env from the same directory as this file.
|
11 | 11 | load_dotenv(path.join(path.dirname(__file__), ".env"))
|
12 | 12 |
|
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 |
27 | 27 |
|
28 | 28 | # Configure a file system cache to store responses for 5 minutes. With the
|
29 | 29 | # requests cache we might return data that's ~20 minutes old.
|
|
0 commit comments