Skip to content

Commit 5456665

Browse files
Fix some warnings.
1 parent 677a647 commit 5456665

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/codacy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ name: Codacy Security Scan
1515

1616
on:
1717
push:
18-
branches:
18+
branches:
1919
- master
2020
- develop
21+
- fix-warnings-2
2122
pull_request:
2223
# The branches below must be a subset of the branches above
23-
branches:
24+
branches:
2425
- master
2526
- develop
2627

source/hab_task.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from datetime import datetime
1313
import copy
1414
import time
15-
# from tzlocal import get_localzone
1615
import pytz
1716

1817
from dates import parse_date_utc
@@ -78,8 +77,6 @@ def due(self):
7877
@property
7978
def starting(self):
8079
"""When did the daily start running? (That is, is it active now?)"""
81-
from dateutil import parser
82-
import datetime
8380
if self.__task_dict['type'] == 'daily':
8481
start = parser.parse(self.__task_dictself.__task_dict['startDate'])
8582
else:

source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pickle
99
import time
1010
import requests
11-
from dateutil import parser
11+
# from dateutil import parser
1212
from hab_task import HabTask
1313
import config
1414

0 commit comments

Comments
 (0)