Skip to content

Commit

Permalink
[Pre-commit] Ignore B308, which is working
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Feb 2, 2024
1 parent 3af0758 commit 4406b50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kibot/out_pcb_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ def plot_realistic_solder_mask(self, id, temp_dir, out_file, color, mirror, scal
logger.debug(' - Found <defs>')
for df in child:
if df.get('id') not in ['cut-off', 'pads-mask-silkscreen']:
child.remove(df)
child.remove(df) # noqa: B038
elif child.tag.endswith('}g') and child.get('id') == "boardContainer":
# Keep the solder mask
g = child
Expand All @@ -979,7 +979,7 @@ def plot_realistic_solder_mask(self, id, temp_dir, out_file, color, mirror, scal
g_mask.set('mask', "url(#pads-mask-silkscreen)")
for gf in g_mask:
if gf.get('id') != 'substrate-board':
g_mask.remove(gf)
g_mask.remove(gf) # noqa: B038
else:
# Apply our color to the solder mask
alpha = 1.0
Expand Down

0 comments on commit 4406b50

Please sign in to comment.