Skip to content

Commit 7980c8e

Browse files
committed
Fix lint
1 parent a5d5cea commit 7980c8e

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

readthedocs/doc_builder/environments.py

+15-17
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ def save(self):
252252
{key: str(value) for key, value in data.items()}
253253
)
254254
resource = api_v2.command
255-
resp = resource._store['session'].post(
256-
resource._store['base_url'] + '/',
255+
resp = resource._store["session"].post(
256+
resource._store["base_url"] + "/",
257257
data=encoder,
258258
headers={
259259
'Content-Type': encoder.content_type,
@@ -365,22 +365,20 @@ def get_wrapped_command(self):
365365
``escape_command=True`` in the init method this escapes a good majority
366366
of those characters.
367367
"""
368-
prefix = ''
368+
prefix = ""
369369
if self.bin_path:
370370
bin_path = self._escape_command(self.bin_path)
371-
prefix += f'PATH={bin_path}:$PATH '
371+
prefix += f"PATH={bin_path}:$PATH "
372372

373373
command = (
374374
' '.join(
375375
self._escape_command(part) if self.escape_command else part
376376
for part in self.command
377377
)
378378
)
379-
return (
380-
"/bin/sh -c '{prefix}{cmd}'".format(
381-
prefix=prefix,
382-
cmd=command,
383-
)
379+
return "/bin/sh -c '{prefix}{cmd}'".format(
380+
prefix=prefix,
381+
cmd=command,
384382
)
385383

386384
def _escape_command(self, cmd):
@@ -524,14 +522,14 @@ class BuildEnvironment(BaseEnvironment):
524522
"""
525523

526524
def __init__(
527-
self,
528-
project=None,
529-
version=None,
530-
build=None,
531-
config=None,
532-
environment=None,
533-
record=True,
534-
**kwargs,
525+
self,
526+
project=None,
527+
version=None,
528+
build=None,
529+
config=None,
530+
environment=None,
531+
record=True,
532+
**kwargs,
535533
):
536534
super().__init__(project, environment)
537535
self.version = version

0 commit comments

Comments
 (0)