Commit Graph

5 Commits

Author SHA1 Message Date
Dan Smith
10d0f7f2d4 Fix some style and unittest regressions in recent patches
#495
2019-02-09 09:44:05 -08:00
Zach Welch
50f2ee37f0 Fix style issues in make_supported.py (#2355)
Like run_tests, this script monkeys with the path to find the chirp
modules, so it gets a similar exception.
2015-03-02 14:11:57 -08:00
Zach Welch
b5dc639eac Fix style issues in unit tests (#2355)
The memedit unit tests needed an exception, as that module uses a lambda
to fake localization when importing the UI module.
2015-03-02 14:11:53 -08:00
Zach Welch
a1628acade Fix style issues in run_tests (#2355)
The run_tests script contains logic to set the path for importing the
chirp modules.  This violates the style rule that all module-level
imports must be at the top of the file, so I added it as an exception
for this file.
2015-03-02 14:11:50 -08:00
Zach Welch
fe0ebd5c09 Allow cpep8.py script to make exceptions (#2355)
This patch enhances the cpep8.py script with the ability to ignore a
list of style rules on per-file basis.  There are cases where it may be
too disruptive to eliminate all style issues, so this mechanism allows
the style checker to enforce the remainder of the style rules.  The new
--strict option will cause the script to ignore the exception list.

As a bonus, this change improves interactivity, so --verbose will cause
the name of the file to be printed as it is checked (rather than
printing one long list before it started).  The downside: the pep8
module catches KeyboardInterrpt, so it's hard impossible to stop once it
gets started.
2015-03-02 14:09:17 -08:00