From f70e484780542cfba3878a3ffb20013ba79e82a6 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 26 Jun 2020 14:46:09 -0300 Subject: [PATCH] Excluded from coverage the last line of the with document block This isn't recorded as executed and I don't know how to inform to coverage that this is executed. SO I'm just excluding them. --- kiplot/out_any_drill.py | 2 +- kiplot/out_any_layer.py | 2 +- kiplot/out_dxf.py | 2 +- kiplot/out_excellon.py | 2 +- kiplot/out_gerber.py | 3 +-- kiplot/out_hpgl.py | 3 ++- kiplot/out_ibom.py | 2 +- kiplot/out_kibom.py | 2 +- kiplot/out_pdf.py | 2 +- kiplot/out_pdf_pcb_print.py | 2 +- kiplot/out_pdf_sch_print.py | 2 +- kiplot/out_position.py | 2 +- kiplot/out_ps.py | 2 +- kiplot/out_step.py | 2 +- kiplot/out_svg.py | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-) diff --git a/kiplot/out_any_drill.py b/kiplot/out_any_drill.py index 84f7a37d..fe289956 100644 --- a/kiplot/out_any_drill.py +++ b/kiplot/out_any_drill.py @@ -20,7 +20,7 @@ class AnyDrill(BaseOutput): """ [string=None] format for a graphical drill map. The valid formats are hpgl, ps, gerber, dxf, svg and pdf. Not generated unless a format is specified """ self._report = None - """ [string=None] name of the drill report. Not generated unless a name is specified """ + """ [string=None] name of the drill report. Not generated unless a name is specified """ # pragma: no cover # Mappings to KiCad values self._map_map = { 'hpgl': PLOT_FORMAT_HPGL, diff --git a/kiplot/out_any_layer.py b/kiplot/out_any_layer.py index 1a86076b..6ea5a6ae 100644 --- a/kiplot/out_any_layer.py +++ b/kiplot/out_any_layer.py @@ -28,7 +28,7 @@ class AnyLayer(BaseOutput): self.force_plot_invisible_refs_vals = False """ include references and values even when they are marked as invisible """ self.tent_vias = True - """ cover the vias """ + """ cover the vias """ # pragma: no cover # Mappings to KiCad values self._drill_marks_map = { 'none': PCB_PLOT_PARAMS.NO_DRILL_SHAPE, diff --git a/kiplot/out_dxf.py b/kiplot/out_dxf.py index 16a577c9..7fe0b3c8 100644 --- a/kiplot/out_dxf.py +++ b/kiplot/out_dxf.py @@ -22,7 +22,7 @@ class DXF(AnyLayer): self.polygon_mode = True """ plot using the contour, instead of the center line """ self.sketch_plot = False - """ don't fill objects, just draw the outline """ + """ don't fill objects, just draw the outline """ # pragma: no cover @property def drill_marks(self): diff --git a/kiplot/out_excellon.py b/kiplot/out_excellon.py index 7d49fc8d..35f3a70e 100644 --- a/kiplot/out_excellon.py +++ b/kiplot/out_excellon.py @@ -19,7 +19,7 @@ class Excellon(AnyDrill): self.minimal_header = False """ use a minimal header in the file """ self.mirror_y_axis = False - """ invert the Y axis """ + """ invert the Y axis """ # pragma: no cover def _configure_writer(self, board, offset): drill_writer = EXCELLON_WRITER(board) diff --git a/kiplot/out_gerber.py b/kiplot/out_gerber.py index 3c81db00..735b0442 100644 --- a/kiplot/out_gerber.py +++ b/kiplot/out_gerber.py @@ -30,8 +30,7 @@ class Gerber(AnyLayer): self.use_gerber_x2_attributes = True """ use the extended X2 format """ self.use_gerber_net_attributes = True - """ include netlist metadata """ - # print("Help for self.use_aux_axis_as_origin: "+self._help_use_aux_axis_as_origin) + """ include netlist metadata """ # pragma: no cover @property def gerber_precision(self): diff --git a/kiplot/out_hpgl.py b/kiplot/out_hpgl.py index 82ba3458..f0574599 100644 --- a/kiplot/out_hpgl.py +++ b/kiplot/out_hpgl.py @@ -23,7 +23,8 @@ class HPGL(AnyLayer): self._drill_marks = 'full' """ what to use to indicate the drill places, can be none, small or full (for real scale) """ self.pen_width = 0.5 - """ pen diameter in MILS, useful to fill areas. However, it is in mm in HPGL files """ + """ pen diameter in MILS, useful to fill areas. However, it is in mm in HPGL files """ # pragma: no cover + @property def drill_marks(self): return self._drill_marks diff --git a/kiplot/out_ibom.py b/kiplot/out_ibom.py index c8427ba7..c681c63f 100644 --- a/kiplot/out_ibom.py +++ b/kiplot/out_ibom.py @@ -22,7 +22,7 @@ class IBoM(BaseOutput): # noqa: F821 self.blacklist = '' """ regular expression for the components to exclude (using the Config field) """ self.name_format = 'ibom' - """ format of the output name, example: %f_%r_iBoM will generate a file with revision and _iBoM """ + """ format of the output name, example: %f_%r_iBoM will contain the revision and _iBoM """ # pragma: no cover def run(self, output_dir, board): check_script(CMD_IBOM, URL_IBOM) diff --git a/kiplot/out_kibom.py b/kiplot/out_kibom.py index 9acd24e2..3a6dcb40 100644 --- a/kiplot/out_kibom.py +++ b/kiplot/out_kibom.py @@ -22,7 +22,7 @@ class KiBoM(BaseOutput): # noqa: F821 # Options with document: self._format = 'HTML' - """ can be `HTML` or `CSV` """ + """ can be `HTML` or `CSV` """ # pragma: no cover @property def format(self): diff --git a/kiplot/out_pdf.py b/kiplot/out_pdf.py index a0bc7da4..0da0cd29 100644 --- a/kiplot/out_pdf.py +++ b/kiplot/out_pdf.py @@ -22,7 +22,7 @@ class PDF(AnyLayer): self.negative_plot = False """ invert black and white """ self._drill_marks = 'full' - """ what to use to indicate the drill places, can be none, small or full (for real scale) """ + """ what to use to indicate the drill places, can be none, small or full (for real scale) """ # pragma: no cover @property def drill_marks(self): diff --git a/kiplot/out_pdf_pcb_print.py b/kiplot/out_pdf_pcb_print.py index 1cb56ef6..8f5f324b 100644 --- a/kiplot/out_pdf_pcb_print.py +++ b/kiplot/out_pdf_pcb_print.py @@ -21,7 +21,7 @@ class PDF_Pcb_Print(BaseOutput): # noqa: F821 # Options with document: self.output_name = '' - """ filename for the output PDF (the name of the PCB if empty) """ + """ filename for the output PDF (the name of the PCB if empty) """ # pragma: no cover def config(self, outdir, options, layers): super().config(outdir, options, layers) diff --git a/kiplot/out_pdf_sch_print.py b/kiplot/out_pdf_sch_print.py index fc511dc2..f25ee9ef 100644 --- a/kiplot/out_pdf_sch_print.py +++ b/kiplot/out_pdf_sch_print.py @@ -20,7 +20,7 @@ class PDF_Sch_Print(BaseOutput): # noqa: F821 # Options with document: self.output = '' - """ filename for the output PDF (the name of the schematic if empty) """ + """ filename for the output PDF (the name of the schematic if empty) """ # pragma: no cover def run(self, output_dir, board): check_eeschema_do() diff --git a/kiplot/out_position.py b/kiplot/out_position.py index 362b212b..d94d2e45 100644 --- a/kiplot/out_position.py +++ b/kiplot/out_position.py @@ -22,7 +22,7 @@ class Position(BaseOutput): # noqa: F821 self.only_smd = True """ only include the surface mount components """ self._units = 'millimeters' - """ can be millimeters or inches """ + """ can be millimeters or inches """ # pragma: no cover @property def format(self): diff --git a/kiplot/out_ps.py b/kiplot/out_ps.py index ccee1119..4838159f 100644 --- a/kiplot/out_ps.py +++ b/kiplot/out_ps.py @@ -34,7 +34,7 @@ class PS(AnyLayer): """ this width factor is intended to compensate PS printers/plotters that do not strictly obey line width settings. Only used to plot pads and tracks """ self.a4_output = True - """ force A4 paper size """ + """ force A4 paper size """ # pragma: no cover @property def drill_marks(self): diff --git a/kiplot/out_step.py b/kiplot/out_step.py index daa49a92..dd765bb9 100644 --- a/kiplot/out_step.py +++ b/kiplot/out_step.py @@ -31,7 +31,7 @@ class STEP(BaseOutput): # noqa: F821 self.min_distance = -1 """ the minimum distance between points to treat them as separate ones (-1 is KiCad default: 0.01 mm) """ self.output = '' - """ name for the generated STEP file (the name of the PCB if empty) """ + """ name for the generated STEP file (the name of the PCB if empty) """ # pragma: no cover @property def origin(self): diff --git a/kiplot/out_svg.py b/kiplot/out_svg.py index 4da8898f..96be5e3a 100644 --- a/kiplot/out_svg.py +++ b/kiplot/out_svg.py @@ -22,7 +22,7 @@ class SVG(AnyLayer): self.negative_plot = False """ invert black and white """ self._drill_marks = 'full' - """ what to use to indicate the drill places, can be none, small or full (for real scale) """ + """ what to use to indicate the drill places, can be none, small or full (for real scale) """ # pragma: no cover @property def drill_marks(self):