From 5a50477f7c2215f6a44d3632739570437a07bf5c Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 9 Oct 2020 11:23:40 -0300 Subject: [PATCH] Sorted the DNF/DNC values in the docs. --- README.md | 4 ++-- kibot/fil_generic.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index df97998b..1d6084c7 100644 --- a/README.md +++ b/README.md @@ -270,8 +270,8 @@ Currently the only type available is `generic`. - `invert`: [boolean=false] Invert the result of the filter. - `keys`: [string|list(string)=dnf_list] [dnc_list,dnf_list] List of keys to match. The `dnf_list` and `dnc_list` internal lists can be specified as strings. - Use `dnf_list` for {'do not load', 'do not fit', 'dnf', 'noload', 'dnl', 'not placed', 'no stuff', 'dnp', 'not loaded', 'noplace', 'not fitted', 'nofit', 'do not place', 'nostuff'}. - Use `dnc_list` for {'dnc', 'do not change', 'no change', 'fixed'}. + Use `dnf_list` for ['dnf', 'dnl', 'dnp', 'do not fit', 'do not load', 'do not place', 'no stuff', 'nofit', 'noload', 'noplace', 'nostuff', 'not fitted', 'not loaded', 'not placed']. + Use `dnc_list` for ['dnc', 'do not change', 'fixed', 'no change']. - `name`: [string=''] Used to identify this particular filter definition. diff --git a/kibot/fil_generic.py b/kibot/fil_generic.py index 044a37d1..cf12b39f 100644 --- a/kibot/fil_generic.py +++ b/kibot/fil_generic.py @@ -72,8 +72,8 @@ class Generic(BaseFilter): # noqa: F821 """ KiCad 5: exclude components marked as smd in the PCB """ self.exclude_tht = False """ KiCad 5: exclude components marked as through-hole in the PCB """ - self.add_to_doc('keys', 'Use `dnf_list` for '+str(DNF)) - self.add_to_doc('keys', 'Use `dnc_list` for '+str(DNC)) + self.add_to_doc('keys', 'Use `dnf_list` for '+str(sorted(DNF))) + self.add_to_doc('keys', 'Use `dnc_list` for '+str(sorted(DNC))) @staticmethod def _fix_field(field):