Commit graph

109 commits

Author SHA1 Message Date
Laurent Bachelier
be28378e9a local_run: Do not capture stderr 2013-04-09 22:32:29 +02:00
Laurent Bachelier
0aa4fd3ede Use only tracked Python files 2013-04-05 18:57:22 +02:00
Laurent Bachelier
bbe4473ac4 Do not copy the backends file 2013-04-05 18:50:39 +02:00
Laurent Bachelier
a99b1ce73d More code quality checks 2013-04-03 19:04:55 +02:00
Laurent Bachelier
5a9bedf423 Fix missing bumps to 0.g 2013-03-27 20:10:01 +01:00
Laurent Bachelier
7b53583357 Fix local_run with empty localconfig 2013-03-25 11:10:38 +01:00
Laurent Bachelier
64119bc03f Add local_install / local_run tools 2013-03-25 11:10:38 +01:00
Laurent Bachelier
1574bd1118 Add weboob_lint wrapper
Like make_man, enforce usage of all modules.
2013-03-25 11:10:38 +01:00
Laurent Bachelier
438d0d0814 Fix pyreverse for new module style
Not sure anyone uses it, though.
2013-03-25 11:10:38 +01:00
Laurent Bachelier
808025819d Not used, setup.py installs them 2013-03-25 11:10:38 +01:00
Laurent Bachelier
83596b3d2a Support more distros / prefer 2.7 2013-03-25 11:10:38 +01:00
Laurent Bachelier
7094931c92 Easy spacing fixes, trailing stuff
Remove useless trailing \
Remove trailing spaces
Add missing empty lines

autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 .

Diff quickly checked.
2013-03-16 00:54:55 +01:00
Laurent Bachelier
dcb2b61b18 pyflakes fixes for unchecked files
They were not in the tools/pyflakes.sh runs
2013-03-16 00:52:43 +01:00
Laurent Bachelier
89f4d7e905 Tell groff manpages are utf-8
This should fix the display of manpages with accents (mainly boobank).
2013-03-09 15:14:46 +01:00
Laurent Bachelier
f0828ee24b Ignore Qt generated UI files 2013-03-09 14:57:08 +01:00
Romain Bignon
329bf19905 add 'test.py' to be generated by the 'base' recipe 2013-02-14 23:34:26 +01:00
Laurent Bachelier
60197c4e96 No DOMAIN in backend 2013-02-14 23:06:05 +01:00
Laurent Bachelier
ae06ae3384 Add missing "whatis entry" to man pages
This is recommended by Debian.
closes #618
2013-02-13 00:38:33 +01:00
Laurent Bachelier
690747dbf2 Not useful anymore 2013-02-13 00:08:23 +01:00
Laurent Bachelier
589dac7bf0 boilerplate: Fix missing use of the class name 2013-02-08 14:22:45 +01:00
Laurent Bachelier
2eed02568b boilerplate: Use unicode by default for some fields 2013-02-07 14:30:25 +01:00
Laurent Bachelier
73d93f2d09 Make the "base" recipe more complete 2013-02-07 14:22:13 +01:00
Laurent Bachelier
32d7b53e63 Start a "base" recipe
This probably needs to have a "pages" templates too.
2013-02-07 14:22:13 +01:00
Laurent Bachelier
1162aa2fd7 Remove gen_comic_reader.sh
Replaced by tools/boilerplate.py
The templates in it are outdated (the test import for example),
hard to maintain, and do not follow PEP8.
Also, boilerplate.py already sets more fields.
2013-02-07 14:22:12 +01:00
Laurent Bachelier
a913072596 Add basic boilerplate script
With the comic templates from tools/gen_comic_reader.sh
2013-02-07 14:22:12 +01:00
Laurent Bachelier
c64fb9150e Support systems with flake8 for python3 by default 2012-12-19 15:12:18 +01:00
Noé Rubinstein
117c9a24d5 gen_comic_reader: path to modules has changed 2012-12-06 23:25:38 +01:00
Laurent Bachelier
541d080c9d Use flake8 if available instead of pyflakes
With flake8, we can check for more issues and ignore those who are not
real issues.

This allowed me to find genuine errors in:
- modules/boursorama/pages/account_history.py
- modules/ing/pages/login.py
- weboob/tools/application/qt/qt.py
I left one in weboob/tools/browser/browser.py for the time being.

Some PEP8 fixes on other files.
2012-11-24 19:46:34 +01:00
Laurent Bachelier
e7c8e8c772 tests: Use the guessed nosetests for the core tests too 2012-11-11 05:20:30 +01:00
Laurent Bachelier
73443ebe31 tests: Guess the right builder name
when run by buildslaves
2012-11-11 05:17:11 +01:00
Laurent Bachelier
da655d84d1 tests: Better way of handling non-module tests
Some were not caught, and they were ran even for a single-module test.
Also, don't include them in the report.
2012-11-10 18:18:32 +01:00
Laurent Bachelier
c9683e08ae tests: Save and submit test results
There is no processing of the reports for now,
but the submit part is done.
2012-11-10 18:18:31 +01:00
Romain Bignon
9f3603d80f use 'hash' instead of 'have' (closes #905) 2012-10-27 13:25:37 +02:00
Romain Bignon
ff2198cd8a remove unused import 2012-10-27 11:21:41 +02:00
Laurent Bachelier
d638ea2f65 No need for nosetests path adjustments 2012-04-27 14:33:15 +02:00
Laurent Bachelier
36db83d74e tests: Allow overriding executables, and try to be smart
Get the explicit Python 2 version if there is one.

fixes #842
2012-04-10 07:43:07 +02:00
Laurent Bachelier
a99cd8a0e5 Add tool to properly start make_man.py
Force using local modules / code.
2012-03-27 11:57:00 +02:00
Laurent Bachelier
3a68fc615b Remove *.pyc before running tests 2012-03-14 23:53:14 +01:00
Laurent Bachelier
006e97a8be PEP8 style fixes and other small style fixes
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.

Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
  classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
  change to a comment something that wasn't really appropriate for a
  docstring.
* Unneeded first if condition in meteofrance
2012-03-14 04:51:46 +01:00
Laurent Bachelier
062f2c4c3e Fix Python 2.5 support
And fix some PEP8 style issues (mostly about spaces) while I was there.

refs #806
2012-03-13 12:36:02 +01:00
Romain Bignon
6b8a163158 change paths of related files to XDG specs 2012-03-03 23:19:38 +01:00
Romain Bignon
2476cbfa1b fix application URL 2012-03-03 23:00:45 +01:00
Laurent Bachelier
1ec64d0897 Force weboob-update to use the local weboob 2012-02-28 14:20:03 +01:00
Laurent Bachelier
30e3aa2038 Use the WEBOOB_BACKENDS variable if it exists 2012-02-12 21:46:52 +01:00
Romain Bignon
04183000bc do not print supported websites if empty 2012-02-06 20:02:09 +01:00
Laurent Bachelier
f3d962b19a Retrieve the keyring, and check its updates are valid 2012-01-30 01:20:57 +01:00
Laurent Bachelier
9686ef6d8d Tests should work with any POSIX shell
Tested with dash & bash.
2012-01-28 00:02:24 +01:00
Laurent Bachelier
129bb7233e Make tests work with the new XDG dirs
Also minor improvements on style.
2012-01-27 23:54:14 +01:00
Laurent Bachelier
e55eb078f5 Return the proper status 2012-01-18 11:38:06 +01:00
Laurent Bachelier
f8af34cc64 Fix typo, and missing weboob-config update command 2012-01-18 01:01:00 +01:00