diff --git a/tools/certhash.py b/tools/certhash.py deleted file mode 100755 index 55ad133efb948f41d40002b5b88c951a5af41316..0000000000000000000000000000000000000000 --- a/tools/certhash.py +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python -from __future__ import print_function -import sys -from weboob.deprecated.browser import StandardBrowser - -print(StandardBrowser()._certhash(sys.argv[1])) diff --git a/tools/pyflakes.sh b/tools/pyflakes.sh index 1bb29abe0b210b424c74f847d0e25a12ec84c07b..52ffab7e3a2c4df5e8999f64b7095713bf6bbb71 100755 --- a/tools/pyflakes.sh +++ b/tools/pyflakes.sh @@ -11,7 +11,7 @@ MODULE_FILES=$(git ls-files modules|grep '\.py$') MODULE_FILES3=$(printf "%s\n" $MODULE_FILES|grep -E -w "^modules/(${PY3MODS})") PYFILES=$(git ls-files | grep '^scripts\|\.py$'|grep -v boilerplate_data|grep -v stable_backport_data|grep -v '^modules'|grep -v '^contrib') -PYFILES3="$(printf "%s\n" $PYFILES | grep -v /deprecated/) $MODULE_FILES3" +PYFILES3="$PYFILES $MODULE_FILES3" PYFILES="$PYFILES $MODULE_FILES" grep -n 'class [^( ]\+:$' ${PYFILES} && echo 'Error: old class style found, always inherit object' && err=3 grep -n '[[:space:]]$' ${PYFILES} && echo 'Error: tabs or trailing whitespace found, remove them' && err=4 diff --git a/tools/weboob_lint.py b/tools/weboob_lint.py index 101c93dda5e114197d2202b029473ff46f31f2d6..a8b9d31e670646df918bfe3407be5850afde9ac4 100755 --- a/tools/weboob_lint.py +++ b/tools/weboob_lint.py @@ -3,7 +3,6 @@ import logging import os -import subprocess import sys from weboob.core import Weboob @@ -19,7 +18,6 @@ modules_without_tests = [] modules_without_icons = [] -modules_using_deprecated = [] modules_without_py3 = [] with open(os.path.join(os.path.dirname(__file__), 'py3-compatible.modules')) as p: @@ -37,8 +35,6 @@ not module.icon: modules_without_icons.append(name) - if subprocess.call(['grep', '-q', '-r', 'weboob.deprecated.browser', path]) == 0: - modules_using_deprecated.append(name) if name not in modules_py3_compatible: modules_without_py3.append(name) @@ -47,11 +43,9 @@ print('\nModules without tests: %s' % ', '.join(sorted(modules_without_tests))) if modules_without_icons: print('\nModules without icons: %s' % ', '.join(sorted(modules_without_icons))) -if modules_using_deprecated: - print('\nModules using deprecated Browser 1: %s' % ', '.join(sorted(modules_using_deprecated))) if modules_without_py3: print('\nModules for Python 2 only: %s' % ', '.join(sorted(modules_without_py3))) -if modules_without_tests or modules_without_icons or modules_using_deprecated or modules_without_py3: +if modules_without_tests or modules_without_icons or modules_without_py3: sys.exit(1)