Message ID | 20231102132037.751746-2-roid@nvidia.com |
---|---|
State | Superseded |
Delegated to: | Eelco Chaudron |
Headers | show |
Series | [ovs-dev,1/2] checkpatch.py: Load personal words list. | expand |
Context | Check | Description |
---|---|---|
ovsrobot/apply-robot | success | apply and check: success |
ovsrobot/intel-ovs-compilation | success | test: success |
ovsrobot/github-robot-_Build_and_Test | success | github build: passed |
On 2 Nov 2023, at 14:20, Roi Dayan via dev wrote: > From: Gaetan Rivet <gaetanr@nvidia.com> > > The enchant dictionary synchronizes additions to the source file. > Keep the two word source separate by adding the extra words only > to the current session. > > Signed-off-by: Gaetan Rivet <gaetanr@nvidia.com> > Acked-by: Roi Dayan <roid@nvidia.com> > --- > utilities/checkpatch.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py > index 9276640760d4..b484a37db2e8 100755 > --- a/utilities/checkpatch.py > +++ b/utilities/checkpatch.py > @@ -95,7 +95,7 @@ def open_spell_check_dict(): > 'dictionary.txt') > spell_check_dict = enchant.DictWithPWL('en_US', word_dic) > for kw in extra_keywords: > - spell_check_dict.add(kw) > + spell_check_dict.add_to_session(kw) I guess this should be the first patch (or maybe a fixes patch in general). > > return True > except: > -- > 2.40.1 > > _______________________________________________ > dev mailing list > dev@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
On 02/11/2023 16:07, Eelco Chaudron wrote: > > > On 2 Nov 2023, at 14:20, Roi Dayan via dev wrote: > >> From: Gaetan Rivet <gaetanr@nvidia.com> >> >> The enchant dictionary synchronizes additions to the source file. >> Keep the two word source separate by adding the extra words only >> to the current session. >> >> Signed-off-by: Gaetan Rivet <gaetanr@nvidia.com> >> Acked-by: Roi Dayan <roid@nvidia.com> >> --- >> utilities/checkpatch.py | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py >> index 9276640760d4..b484a37db2e8 100755 >> --- a/utilities/checkpatch.py >> +++ b/utilities/checkpatch.py >> @@ -95,7 +95,7 @@ def open_spell_check_dict(): >> 'dictionary.txt') >> spell_check_dict = enchant.DictWithPWL('en_US', word_dic) >> for kw in extra_keywords: >> - spell_check_dict.add(kw) >> + spell_check_dict.add_to_session(kw) > > I guess this should be the first patch (or maybe a fixes patch in general). I don't think the order matters. I just sent together because they can cause a conflict as the patches modify the same area. Let me know if you want me to add a fixes line or it can be amended when commit taken. This is the fixes line. Fixes: 999c7773a60b ("checkpatch: add a comment spell-checker") > >> >> return True >> except: >> -- >> 2.40.1 >> >> _______________________________________________ >> dev mailing list >> dev@openvswitch.org >> https://mail.openvswitch.org/mailman/listinfo/ovs-dev >
Eelco Chaudron <echaudro@redhat.com> writes: > On 2 Nov 2023, at 14:20, Roi Dayan via dev wrote: > >> From: Gaetan Rivet <gaetanr@nvidia.com> >> >> The enchant dictionary synchronizes additions to the source file. >> Keep the two word source separate by adding the extra words only >> to the current session. >> >> Signed-off-by: Gaetan Rivet <gaetanr@nvidia.com> >> Acked-by: Roi Dayan <roid@nvidia.com> >> --- >> utilities/checkpatch.py | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py >> index 9276640760d4..b484a37db2e8 100755 >> --- a/utilities/checkpatch.py >> +++ b/utilities/checkpatch.py >> @@ -95,7 +95,7 @@ def open_spell_check_dict(): >> 'dictionary.txt') >> spell_check_dict = enchant.DictWithPWL('en_US', word_dic) >> for kw in extra_keywords: >> - spell_check_dict.add(kw) >> + spell_check_dict.add_to_session(kw) > > I guess this should be the first patch (or maybe a fixes patch in general). +1 - I would be fine with merging this on its own. >> >> return True >> except: >> -- >> 2.40.1 >> >> _______________________________________________ >> dev mailing list >> dev@openvswitch.org >> https://mail.openvswitch.org/mailman/listinfo/ovs-dev > > _______________________________________________ > dev mailing list > dev@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
On 08/11/2023 20:50, Aaron Conole wrote: > Eelco Chaudron <echaudro@redhat.com> writes: > >> On 2 Nov 2023, at 14:20, Roi Dayan via dev wrote: >> >>> From: Gaetan Rivet <gaetanr@nvidia.com> >>> >>> The enchant dictionary synchronizes additions to the source file. >>> Keep the two word source separate by adding the extra words only >>> to the current session. >>> >>> Signed-off-by: Gaetan Rivet <gaetanr@nvidia.com> >>> Acked-by: Roi Dayan <roid@nvidia.com> >>> --- >>> utilities/checkpatch.py | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py >>> index 9276640760d4..b484a37db2e8 100755 >>> --- a/utilities/checkpatch.py >>> +++ b/utilities/checkpatch.py >>> @@ -95,7 +95,7 @@ def open_spell_check_dict(): >>> 'dictionary.txt') >>> spell_check_dict = enchant.DictWithPWL('en_US', word_dic) >>> for kw in extra_keywords: >>> - spell_check_dict.add(kw) >>> + spell_check_dict.add_to_session(kw) >> >> I guess this should be the first patch (or maybe a fixes patch in general). > > +1 - I would be fine with merging this on its own. > ok. is it possible to take only this one from the series or I need to send it again on its own? >>> >>> return True >>> except: >>> -- >>> 2.40.1 >>> >>> _______________________________________________ >>> dev mailing list >>> dev@openvswitch.org >>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev >> >> _______________________________________________ >> dev mailing list >> dev@openvswitch.org >> https://mail.openvswitch.org/mailman/listinfo/ovs-dev >
Roi Dayan <roid@nvidia.com> writes: > On 08/11/2023 20:50, Aaron Conole wrote: >> Eelco Chaudron <echaudro@redhat.com> writes: >> >>> On 2 Nov 2023, at 14:20, Roi Dayan via dev wrote: >>> >>>> From: Gaetan Rivet <gaetanr@nvidia.com> >>>> >>>> The enchant dictionary synchronizes additions to the source file. >>>> Keep the two word source separate by adding the extra words only >>>> to the current session. >>>> >>>> Signed-off-by: Gaetan Rivet <gaetanr@nvidia.com> >>>> Acked-by: Roi Dayan <roid@nvidia.com> >>>> --- >>>> utilities/checkpatch.py | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py >>>> index 9276640760d4..b484a37db2e8 100755 >>>> --- a/utilities/checkpatch.py >>>> +++ b/utilities/checkpatch.py >>>> @@ -95,7 +95,7 @@ def open_spell_check_dict(): >>>> 'dictionary.txt') >>>> spell_check_dict = enchant.DictWithPWL('en_US', word_dic) >>>> for kw in extra_keywords: >>>> - spell_check_dict.add(kw) >>>> + spell_check_dict.add_to_session(kw) >>> >>> I guess this should be the first patch (or maybe a fixes patch in general). >> >> +1 - I would be fine with merging this on its own. >> > > ok. is it possible to take only this one from the series or I need > to send it again on its own? Yes - I will take this patch on Monday. >>>> >>>> return True >>>> except: >>>> -- >>>> 2.40.1 >>>> >>>> _______________________________________________ >>>> dev mailing list >>>> dev@openvswitch.org >>>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev >>> >>> _______________________________________________ >>> dev mailing list >>> dev@openvswitch.org >>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev >>
diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py index 9276640760d4..b484a37db2e8 100755 --- a/utilities/checkpatch.py +++ b/utilities/checkpatch.py @@ -95,7 +95,7 @@ def open_spell_check_dict(): 'dictionary.txt') spell_check_dict = enchant.DictWithPWL('en_US', word_dic) for kw in extra_keywords: - spell_check_dict.add(kw) + spell_check_dict.add_to_session(kw) return True except: