Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Jan 17, 2024
1 parent 098ad00 commit 3e10057
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/rich_codex/codex_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ def search_files(self):
img_cmd_match = img_cmd_re.match(line)
img_match = img_snippet_re.match(line)
if (img_cmd_match or img_match) and not local_config.get("skip"):

# Logging string of original local config
local_config_logmsg = f" with config: {local_config}" if len(local_config) > 0 else ""

Expand Down
3 changes: 0 additions & 3 deletions src/rich_codex/rich_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ def run_command(self):

# Run before_command if set
if self.before_command:

# Workaround to get inspect() into a string for logging
# https://github.com/Textualize/rich/discussions/2378
log.debug("Running 'before_command'")
Expand Down Expand Up @@ -421,7 +420,6 @@ def _enough_image_difference(self, new_fn, old_fn):

# No point in looking for a diff if the files are identical
if pct_change > 0:

# Regex on file diff to skip
skip_regexes = list(r for r in IGNORE_REGEXES.get(new_file.suffix, [])) # deep copy
if self.skip_change_regex:
Expand Down Expand Up @@ -495,7 +493,6 @@ def save_images(self):
png_img = None
pdf_img = None
for filename in self.img_paths:

# Make directories if necessary
try:
Path(filename).parent.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit 3e10057

Please sign in to comment.