Skip to content

Commit 29cb340

Browse files
author
michalslowikowski00
committed
fixed unused-import
1 parent 785a7dc commit 29cb340

File tree

8 files changed

+5
-13
lines changed

8 files changed

+5
-13
lines changed

kibble/api/pages/account.py

-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
import json
101101
import re
102102
import smtplib
103-
import time
104103

105104
import bcrypt
106105

kibble/api/pages/filters.py

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
"""
2121

2222
import json
23-
import re
24-
import time
2523

2624

2725
def run(API, environ, indata, session):

kibble/api/pages/sources.py

-3
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@
126126
import hashlib
127127
import json
128128
import os
129-
import re
130-
import time
131129

132130
import yaml
133131

@@ -150,7 +148,6 @@ def canModifySource(session):
150148

151149

152150
def run(API, environ, indata, session):
153-
154151
# We need to be logged in for this!
155152
if not session.user:
156153
raise API.exception(403, "You must be logged in to use this API endpoint! %s")

kibble/api/pages/views.py

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

140140
import hashlib
141141
import json
142-
import re
143142
import time
144143

145144

kibble/scanners/kibble-scanner.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ def base_parser():
4646
arg_parser.add_argument(
4747
"-a",
4848
"--age",
49-
help="Minimum age in hours before performing a new scan on an already processed source. --age 12 will not process any source that was processed less than 12 hours ago, but will process new sources.",
49+
help="""Minimum age in hours before performing a new scan on an already processed source.
50+
--age 12 will not process any source
51+
that was processed less than 12 hours ago, but will process new sources.""",
5052
)
5153
arg_parser.add_argument(
5254
"-s", "--source", help="A specific source (wildcard) to run scans on."

kibble/scanners/scanners/git-census.py

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
import datetime
19-
import email.utils
2018
import hashlib
2119
import os
2220
import re

kibble/scanners/utils/git.py

-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717

1818
""" This is the Kibble git utility plugin """
1919

20-
import os
2120
import re
2221
import subprocess
23-
import sys
2422

2523

2624
def defaultBranch(source, datapath, KibbleBit=None):

pylintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ disable=invalid-name,
146146
too-many-locals,
147147
too-many-statements,
148148
too-many-branches,
149-
broad-except
149+
broad-except,
150+
line-too-long
150151

151152
# Enable the message, report, category or checker with the given id(s). You can
152153
# either give multiple identifier separated by comma (,) or put this option

0 commit comments

Comments
 (0)