|
3 | 3 | import os |
4 | 4 | import re |
5 | 5 | import sys |
6 | | -from typing import Any, Dict, List, Tuple # noqa |
| 6 | +from typing import Any, Dict, List, Tuple |
7 | 7 |
|
8 | 8 | import celery.schedules |
9 | 9 | import pytz |
|
12 | 12 | from sentry_sdk.integrations.django import DjangoIntegration |
13 | 13 | from sentry_sdk.integrations.logging import LoggingIntegration |
14 | 14 |
|
15 | | -from ..utils import helpers # pylint: disable=wrong-import-position # noqa |
| 15 | +from ..utils import helpers # pylint: disable=wrong-import-position |
16 | 16 |
|
17 | 17 | if sys.version_info < (3, 5): |
18 | 18 | # Require Python 3.5+ |
|
38 | 38 |
|
39 | 39 | # When school is scheduled to start and end |
40 | 40 | SCHOOL_START_DATE = datetime.date(start_school_year, |
41 | | - 8, 19 # UPDATE THIS! Value when last updated: August 19, 2024 # noqa: E128 |
42 | | -) # noqa: E124 |
| 41 | + 8, 19 # UPDATE THIS! Value when last updated: August 19, 2024 |
| 42 | +) |
43 | 43 | SCHOOL_END_DATE = datetime.date(end_school_year, |
44 | | - 6, 11 # UPDATE THIS! Value when last updated: June 11, 2025 # noqa: E128 |
45 | | -) # noqa: E124 |
| 44 | + 6, 11 # UPDATE THIS! Value when last updated: June 11, 2025 |
| 45 | +) |
46 | 46 |
|
47 | 47 | # Dates when hoco starts and ends |
48 | 48 | HOCO_START_DATE = datetime.date(start_school_year, |
49 | | - 9, 21 # UPDATE THIS! Value when last updated: September 21, 2024 # noqa: E128 |
50 | | -) # noqa: E124 |
| 49 | + 9, 21 # UPDATE THIS! Value when last updated: September 21, 2024 |
| 50 | +) |
51 | 51 | HOCO_END_DATE = datetime.date(start_school_year, |
52 | | - 9, 29 # UPDATE THIS! Value when last updated: September 29, 2024 # noqa: E128 |
53 | | -) # noqa: E124 |
| 52 | + 9, 29 # UPDATE THIS! Value when last updated: September 29, 2024 |
| 53 | +) |
54 | 54 |
|
55 | 55 | # Date of tjSTAR |
56 | 56 | TJSTAR_DATE = datetime.date(end_school_year, |
57 | | - 5, 21 # UPDATE THIS! Value when last updated: May 21, 2025 # noqa: E128 |
58 | | -) # noqa: E124 |
| 57 | + 5, 21 # UPDATE THIS! Value when last updated: May 21, 2025 |
| 58 | +) |
59 | 59 |
|
60 | 60 | # When to start showing the tjSTAR banner |
61 | 61 | TJSTAR_BANNER_START_DATE = TJSTAR_DATE - datetime.timedelta(days=4) |
@@ -955,6 +955,11 @@ def get_log(name): # pylint: disable=redefined-outer-name; 'name' is used as th |
955 | 955 | "schedule": celery.schedules.crontab(day_of_month=3, hour=1), |
956 | 956 | "args": (), |
957 | 957 | }, |
| 958 | + "fetch-fcps-bus-delays": { |
| 959 | + "task": "intranet.apps.bus.tasks.fetch_fcps_bus_delays", |
| 960 | + "schedule": 10.0, |
| 961 | + "args": (), |
| 962 | + }, |
958 | 963 | "remove-old-lostfound-entries": { |
959 | 964 | "task": "intranet.apps.lostfound.tasks.remove_old_lostfound", |
960 | 965 | "schedule": celery.schedules.crontab(day_of_month=1, hour=1), |
@@ -992,7 +997,7 @@ def get_log(name): # pylint: disable=redefined-outer-name; 'name' is used as th |
992 | 997 | DEFAULT_AUTO_FIELD = "django.db.models.AutoField" |
993 | 998 |
|
994 | 999 | try: |
995 | | - from .secret import * # noqa |
| 1000 | + from .secret import * |
996 | 1001 | except ImportError: |
997 | 1002 | pass |
998 | 1003 |
|
|
0 commit comments