Skip to content

Commit ececa86

Browse files
committed
chore(ruff): whatespace fixes/silence linting
I silenced a list of tuple definitions because I wanted the columns to align.
1 parent 03e4cf5 commit ececa86

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

roundup/cgi/client.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ def clean_up(self):
10271027
10281028
Do it only once an hour.
10291029
"""
1030-
hour = 60*60
1030+
hour = 60 * 60
10311031
now = time.time()
10321032

10331033
# XXX: hack - use OTK table to store last_clean time information
@@ -2176,7 +2176,7 @@ def selectTemplate(self, name, view):
21762176
else:
21772177
# try path/class.view
21782178
tplname = '%s/%s.%s' % (
2179-
view[:slash_loc], name, view[slash_loc+1:])
2179+
view[:slash_loc], name, view[slash_loc + 1:])
21802180

21812181
if loader.check(tplname):
21822182
return tplname
@@ -2189,7 +2189,7 @@ def selectTemplate(self, name, view):
21892189
if slash_loc == -1:
21902190
generic = '_generic.%s' % view
21912191
else:
2192-
generic = '%s/_generic.%s' % (view[:slash_loc], view[slash_loc+1:])
2192+
generic = '%s/_generic.%s' % (view[:slash_loc], view[slash_loc + 1:])
21932193
if loader.check(generic):
21942194
return generic
21952195

@@ -2223,7 +2223,7 @@ def renderContext(self):
22232223
timings = {'starttag': '<!-- ', 'endtag': ' -->'}
22242224
else:
22252225
timings = {'starttag': '<p>', 'endtag': '</p>'}
2226-
timings['seconds'] = time.time()-self.start
2226+
timings['seconds'] = time.time() - self.start
22272227
s = self._(
22282228
'%(starttag)sTime elapsed: %(seconds)fs%(endtag)s\n'
22292229
) % timings
@@ -2305,20 +2305,20 @@ def renderError(self, error, response_code=400, use_template=True):
23052305

23062306
# these are the actions that are available
23072307
actions = (
2308-
('edit', actions.EditItemAction),
2309-
('editcsv', actions.EditCSVAction),
2310-
('new', actions.NewItemAction),
2311-
('register', actions.RegisterAction),
2312-
('confrego', actions.ConfRegoAction),
2313-
('passrst', actions.PassResetAction),
2314-
('login', actions.LoginAction),
2315-
('logout', actions.LogoutAction),
2316-
('search', actions.SearchAction),
2317-
('restore', actions.RestoreAction),
2318-
('retire', actions.RetireAction),
2319-
('show', actions.ShowAction),
2320-
('export_csv', actions.ExportCSVAction),
2321-
('export_csv_id', actions.ExportCSVWithIdAction),
2308+
('edit', actions.EditItemAction), # noqa: E241
2309+
('editcsv', actions.EditCSVAction), # noqa: E241
2310+
('new', actions.NewItemAction), # noqa: E241
2311+
('register', actions.RegisterAction), # noqa: E241
2312+
('confrego', actions.ConfRegoAction), # noqa: E241
2313+
('passrst', actions.PassResetAction), # noqa: E241
2314+
('login', actions.LoginAction), # noqa: E241
2315+
('logout', actions.LogoutAction), # noqa: E241
2316+
('search', actions.SearchAction), # noqa: E241
2317+
('restore', actions.RestoreAction), # noqa: E241
2318+
('retire', actions.RetireAction), # noqa: E241
2319+
('show', actions.ShowAction), # noqa: E241
2320+
('export_csv', actions.ExportCSVAction), # noqa: E241
2321+
('export_csv_id', actions.ExportCSVWithIdAction), # noqa: E241
23222322
)
23232323

23242324
def handle_action(self):
@@ -2913,7 +2913,7 @@ def header(self, headers=None, response=None):
29132913
if self.debug:
29142914
self.headers_sent = headers
29152915

2916-
def add_cookie(self, name, value, expire=86400*365, path=None):
2916+
def add_cookie(self, name, value, expire=86400 * 365, path=None):
29172917
"""Set a cookie value to be sent in HTTP headers
29182918
29192919
Parameters:

0 commit comments

Comments
 (0)