commit 02fa064867d186a3c9bbcc984f93ac0c20669ba9 Author: Damian Johnson atagar@torproject.org Date: Sun Apr 14 15:17:39 2013 -0700
Including docs in our pyflakes and pep8 checks
Including source from our docs directory in static checks. --- docs/republish.py | 1 - run_tests.py | 2 ++ test/util.py | 1 + 3 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/docs/republish.py b/docs/republish.py index 118ea3f..0dbad16 100644 --- a/docs/republish.py +++ b/docs/republish.py @@ -84,4 +84,3 @@ if __name__ == '__main__': LOGGER.log(logging.WARN, str(exc)) else: republish_site() - diff --git a/run_tests.py b/run_tests.py index 9929cca..9667f14 100755 --- a/run_tests.py +++ b/run_tests.py @@ -67,6 +67,8 @@ SRC_PATHS = [os.path.join(STEM_BASE, path) for path in ( 'stem', 'test', 'run_tests.py', + os.path.join('docs', 'republish.py'), + os.path.join('docs', 'trac.py'), )]
LOG_TYPE_ERROR = """\ diff --git a/test/util.py b/test/util.py index 623f0cd..fc68f09 100644 --- a/test/util.py +++ b/test/util.py @@ -387,6 +387,7 @@ def check_for_unused_tests(paths): if unused_tests: raise ValueError("Test modules are missing from our test/settings.cfg:\n%s" % "\n".join(unused_tests))
+ def python3_prereq(): for required_cmd in ("2to3", "python3"): if not stem.util.system.is_available(required_cmd):
tor-commits@lists.torproject.org