Added comment about update_xml is no longer needed.

This commit is contained in:
SET 2020-08-17 19:52:32 -03:00
parent cd6c1d5ba4
commit 231ffa5628
3 changed files with 9 additions and 3 deletions

View File

@ -70,7 +70,9 @@ This section is used to specify tasks that will be executed before generating an
- ignore_unconnected: [boolean=false] Option for `run_drc`. Ignores the unconnected nets. Useful if you didn't finish the routing.
- run_drc: [boolean=false] Runs the DRC (Distance Rules Check). To ensure we have a valid PCB.
- run_erc: [boolean=false] Runs the ERC (Electrical Rules Check). To ensure the schematic is electrically correct.
- update_xml: [boolean=false] Update the XML version of the BoM (Bill of Materials). To ensure our generated BoM is up to date.
- update_xml: [boolean=false] Update the XML version of the BoM (Bill of Materials).
To ensure our generated BoM is up to date.
Note that this isn't needed when using the internal BoM generator (`bom`).
Here is an example of a *preflight* section:

View File

@ -15,7 +15,9 @@ preflight:
run_drc: true
# [boolean=false] Runs the ERC (Electrical Rules Check). To ensure the schematic is electrically correct
run_erc: true
# [boolean=false] Update the XML version of the BoM (Bill of Materials). To ensure our generated BoM is up to date
# [boolean=false] Update the XML version of the BoM (Bill of Materials).
To ensure our generated BoM is up to date.
Note that this isn't needed when using the internal BoM generator (`bom`)
update_xml: true
outputs:

View File

@ -17,7 +17,9 @@ logger = get_logger(__name__)
@pre_class
class Update_XML(BasePreFlight): # noqa: F821
""" [boolean=false] Update the XML version of the BoM (Bill of Materials). To ensure our generated BoM is up to date """
""" [boolean=false] Update the XML version of the BoM (Bill of Materials).
To ensure our generated BoM is up to date.
Note that this isn't needed when using the internal BoM generator (`bom`) """
def __init__(self, name, value):
super().__init__(name, value)
if not isinstance(value, bool):