Closed Bug 1412274 Opened 8 years ago Closed 8 years ago

[compare-locales] update to flake8 3.5.0

Categories

(Localization Infrastructure and Tools :: compare-locales, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: Pike)

Details

Attachments

(1 file)

Version 3.5.0 of flake8 got released, and it's adding some more checks, notably bare excepts and ambiguous variable names, both of which show up in compare-locales. Two things: We should look at those checks, and see if they're good for us or not. We should tie the version of flake8 in tox.ini, probably to <3.6.0. That seems to be the right way to keep our tests from suddenly failing.
Comment on attachment 8922866 [details] bug 1412274, update compare-locales to latest flake8 test, https://reviewboard.mozilla.org/r/194004/#review199102 ::: compare_locales/paths.py:138 (Diff revision 1) > assert not self.rules > > def filter_(module, path, entity=None): > try: > rv = filter(module, path, entity=entity) > - except: > + except: # noqa, we really want to handle EVERYTHING here I think you could also catch all errors by specifying BaseException which is the base class for all system errors and for Exception. except BaseException: … ::: compare_locales/paths.py:557 (Diff revision 1) > Only works with synchronous loads, used by compare-locales, which > is local anyway. > ''' > filter_path = mozpath.join(mozpath.dirname(self.inipath), 'filter.py') > try: > - l = {} > + local = {} <3
Attachment #8922866 - Flags: review?(stas) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Assignee: nobody → l10n
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: