Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
135
Issues
135
List
Boards
Labels
Milestones
Merge Requests
42
Merge Requests
42
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
weboob
weboob
Commits
1e243eb0
Commit
1e243eb0
authored
Jan 06, 2019
by
Laurent Bachelier
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: Remove things related to deprecated Browser
parent
d2ba0396
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
14 deletions
+2
-14
certhash.py
tools/certhash.py
+0
-6
pyflakes.sh
tools/pyflakes.sh
+1
-1
weboob_lint.py
tools/weboob_lint.py
+1
-7
No files found.
tools/certhash.py
deleted
100755 → 0
View file @
d2ba0396
#!/usr/bin/env python
from
__future__
import
print_function
import
sys
from
weboob.deprecated.browser
import
StandardBrowser
print
(
StandardBrowser
()
.
_certhash
(
sys
.
argv
[
1
]))
tools/pyflakes.sh
View file @
1e243eb0
...
...
@@ -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
...
...
tools/weboob_lint.py
View file @
1e243eb0
...
...
@@ -3,7 +3,6 @@ from __future__ import print_function
import
logging
import
os
import
subprocess
import
sys
from
weboob.core
import
Weboob
...
...
@@ -19,7 +18,6 @@ weboob.modules_loader.load_all()
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 @@ for name, module in weboob.modules_loader.loaded.items():
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 @@ if modules_without_tests:
print
(
'
\n
Modules without tests:
%
s'
%
', '
.
join
(
sorted
(
modules_without_tests
)))
if
modules_without_icons
:
print
(
'
\n
Modules without icons:
%
s'
%
', '
.
join
(
sorted
(
modules_without_icons
)))
if
modules_using_deprecated
:
print
(
'
\n
Modules using deprecated Browser 1:
%
s'
%
', '
.
join
(
sorted
(
modules_using_deprecated
)))
if
modules_without_py3
:
print
(
'
\n
Modules 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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment