Skip to content

Commit

Permalink
Apply pre-commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr authored and bdice committed Jun 14, 2022
1 parent 283878a commit 5dcc2cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions signac/contrib/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ def __init__(self, root=None):
# Prepare root directory and workspace paths.
# os.path is used instead of pathlib.Path for performance.
self._root_directory = os.path.abspath(root)
self._workspace = _CallableString(os.path.join(self._root_directory, "workspace"))
self._workspace = _CallableString(
os.path.join(self._root_directory, "workspace")
)

# Prepare workspace directory.
if not os.path.isdir(self.workspace):
Expand Down Expand Up @@ -1332,9 +1334,7 @@ def _build_index(self, include_job_document=False):
# workspace, job id, and document file name to be
# well-formed, so just use str.join with os.sep instead of
# os.path.join for speed.
fn_document = os.sep.join(
(self.workspace, job_id, Job.FN_DOCUMENT)
)
fn_document = os.sep.join((self.workspace, job_id, Job.FN_DOCUMENT))
with open(fn_document, "rb") as file:
doc["doc"] = json.loads(file.read().decode())
except OSError as error:
Expand Down

0 comments on commit 5dcc2cd

Please sign in to comment.