Skip to content
Snippets Groups Projects
  1. Dec 01, 2023
  2. Nov 29, 2023
  3. Feb 20, 2023
  4. Feb 17, 2023
  5. Oct 18, 2022
  6. Apr 26, 2022
  7. Apr 08, 2022
  8. Dec 16, 2021
  9. Sep 30, 2021
  10. Apr 27, 2021
    • Antoine Lambert's avatar
      tox: Add sphinx environments to check sane doc build · d0f3d3d3
      Antoine Lambert authored
      Enable to check package documentation can be built without producing
      sphinx warnings.
      
      The sphinx environment is designed to be used in continuous integration
      in order to prevent breaking documentation build when committing changes.
      
      The sphinx-dev environment is designed to be used inside a full swh
      development environment.
      
      Related to T3258
      d0f3d3d3
  11. Feb 04, 2021
  12. Nov 27, 2020
    • vlorentz's avatar
      fix mypy error in swh/deposit/urls.py · f02b7f71
      vlorentz authored
      If djangorestframework-stubs does not contain the stub for
      `format_suffix_patterns`, then mypy does not see any issue on passing it
      a `List[object]` as argument, so the `# type: ignore` is useless,
      so mypy complains about it.
      f02b7f71
  13. Oct 02, 2020
  14. Sep 24, 2020
    • David Douard's avatar
      Fix dependency-related hell in tox · 047588a0
      David Douard authored
      For some reason, the previous commit ended up messing pip while
      selecting the extras of swh.core to be used, making it not select the
      [http] extra.
      047588a0
  15. Jul 09, 2020
  16. May 14, 2020
  17. May 11, 2020
  18. Apr 08, 2020
    • Nicolas Dandrimont's avatar
      Update type annotations and signatures to match djangorestframework-stubs · dfd33d2d
      Nicolas Dandrimont authored
      I noticed this because my virtualenv ended up with the djangorestframework-stubs
      package installed, which made the mypy pre-commit hook fail.
      
      This commit adds drf-stubs to the tox.ini, and does the relevant updates to our
      type annotations/signatures.
      
      Turns out that upstream DRF has all `request` parameters named that way, so we
      rename all our `req` parameters to match, which appeases mypy's signature
      checks.
      dfd33d2d
    • David Douard's avatar
      Enable black · f5426d67
      David Douard authored
      - blackify all the python files,
      - enable black in pre-commit,
      - add a black tox environment.
      f5426d67
  19. Jan 10, 2020
    • David Douard's avatar
      Make tests pass with django 2 · 75e7385e
      David Douard authored
      For this we:
      
      - ensure we create the DepositRequest with str as raw_metadata (instead
        of a bytes), and
      - make atom_dataset return a str instead of a bytes
      
        Every time this chunk of data is sent on the wire (http req to the django app)
        this needs to be an str, otherwise we have things like:
      
          raw_metadata = "b'[...]'"
      
        especially when testing against django 2, which is the only django version
        available on debian sid, so this is needed to make it possible to build the
        deb file on sid *with* tests enabled.
      - add a py3-django2 environment in tox
      - bump the dependency to django <3 in requirements-server.txt (otherwise it
        will take precendence on the deps: field of the tox file, thus execute tests
        in py3-django2 with django 1.11).
      
      Note that no other tests than executing pytest have been done with django2, so
      do not expect it works flawlessly.
      75e7385e
  20. Dec 20, 2019
    • David Douard's avatar
      tests: make tests run with a proper scheduler · 5a635951
      David Douard authored
      so the scheduler interaction code is executed.
      
      Note that this does not test for correctness in these interactions yet.
      
      also move tests/__init__.py content in tests/conftest.py and adapt test code
      accordingly.
      
      This also ensures retries_left is set otherwise tests may fail when using
      the local sheduler.
      5a635951
  21. Dec 03, 2019
  22. Nov 21, 2019
  23. Nov 07, 2019
  24. Nov 01, 2019
  25. Oct 21, 2019
  26. Oct 19, 2019
  27. May 20, 2019
  28. Apr 13, 2019
  29. Nov 07, 2018
  30. Oct 29, 2018
  31. Oct 24, 2018
Loading