Skip to content

Commit

Permalink
Fix style issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Jan 17, 2024
1 parent f9280d9 commit e2b9b24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cubids/cubids.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def datalad_undo_last_commit(self):
Uses git reset --hard to revert to the previous commit.
"""
if not self.is_datalad_clean():
raise Exception("Untracked changes present. " "Run clear_untracked_changes first")
raise Exception("Untracked changes present. Run clear_untracked_changes first")
reset_proc = subprocess.run(["git", "reset", "--hard", "HEAD~1"], cwd=self.path)
reset_proc.check_returncode()

Expand Down
4 changes: 2 additions & 2 deletions cubids/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def build_subject_paths(bids_dir):
subjects = glob.glob(bids_dir)

if len(subjects) < 1:
raise ValueError("Couldn't find any subjects " "in the specified directory:\n" + bids_dir)
raise ValueError("Couldn't find any subjects in the specified directory:\n" + bids_dir)

subjects_dict = {}

Expand Down Expand Up @@ -93,7 +93,7 @@ def parse_issue(issue_dict):
return_dict["files"] = [
get_nested(x, "file", "relativePath") for x in issue_dict.get("files", "")
]
return_dict["type"] = issue_dict.get("key" "")
return_dict["type"] = issue_dict.get("key", "")
return_dict["severity"] = issue_dict.get("severity", "")
return_dict["description"] = issue_dict.get("reason", "")
return_dict["code"] = issue_dict.get("code", "")
Expand Down

0 comments on commit e2b9b24

Please sign in to comment.