1. 28 Oct, 2020 1 commit
    • ntome's avatar
      tools/hooks/run-flake8.py: use flake8-import-order plugin · 9c714c91
      ntome authored and hydrargyrum's avatar hydrargyrum committed
      But it's pep8 rule keeps application-imports in the same group as
      relative-imports. Changing it is not a matter of configuration but defining
      our own style, which is tedious as it would require a setuptools entrypoint
      just for that, so we inject manually the style.
  2. 26 Aug, 2020 1 commit
  3. 07 May, 2020 1 commit
  4. 29 Apr, 2020 1 commit
  5. 24 Mar, 2020 1 commit
  6. 14 Dec, 2019 1 commit
  7. 02 Jan, 2019 1 commit
  8. 30 Aug, 2017 3 commits
  9. 31 Jul, 2017 1 commit
  10. 24 Dec, 2016 2 commits
    • Phyks (Lucas Verney)'s avatar
    • Phyks (Lucas Verney)'s avatar
      Gitlab-CI continuous integration · 434c0f15
      Phyks (Lucas Verney) authored
      This commit adds the necessary files to run the CI using Gitlab-CI. For
      now, it checks that Weboob builds, then runs the linting script
      (checking that every module as an icon and some tests + PyFlakes) and
      the unittests. Most of modules unittests cannot run because there is no
      backend configured.
      Some changes were needed in the pre-existing scripts:
      * Edit `weboob_lint` to exit with non-zero code if it finds modules
      without icons or tests, so that the build could fail in such a case.
      * Edit `run_tests.sh` to set correct exit code on failure and rework
      generation of XUNIT output. Also added some doc about useful environment
      variables. Added a way to generate an xunit output file when running modules
      unittests, passing a `XUNIT_OUT` env variable to `run_tests.sh` script.
      * Modification of `setup.cfg` and `run_tests` scripts to handle code
      coverage generation. The matching regex in Gitlab for the total code
      coverage is `TOTAL: (\d+\%\s*)$)`.
      I also added a script to generate a JSON module status matrix from
      modules unittests, ready to be sent to a
      [Weboob-CI](https://github.com/Phyks/weboob-ci) instance.
      NOTE: Required Python modules are taken from the `setup.py` script.
      `.ci/requirements.txt` contains the requirements to run the unittests
      and the CI, whereas `.ci/requirements_modules.txt` contains the specific
      Python modules required at runtime by Weboob modules. The latter could
      eventually be replaced by a proper call to `debpydep` script.