1. 24 Mar, 2022 1 commit
  2. 25 Feb, 2022 6 commits
  3. 01 Apr, 2021 1 commit
  4. 30 Mar, 2021 2 commits
    • Sorin Sbarnea's avatar
      Enable py39 testing with hacking · f56b276b
      Sorin Sbarnea authored
      - bump template to wallaby to make use of py39 job
      - advertise py39 support in metadata
      - clean default tox envlist to be python version agnostic
      
      Change-Id: I47ce403f35460bcf27d044450c7e6ed00cda7c4f
      f56b276b
    • Sorin Sbarnea's avatar
      Add useful project links to metadata · bb71c727
      Sorin Sbarnea authored
      Hacking PyPI presence does miss to expose few essential links related
      to the project, so we add them to avoid forcing users to dig into
      the documentation to find them.
      
      Change-Id: I534ca4509bdb5f6846a41bf7cd25dd1773abaca7
      bb71c727
  5. 23 Mar, 2021 1 commit
  6. 25 Feb, 2021 1 commit
  7. 26 Jan, 2021 2 commits
  8. 01 Dec, 2020 1 commit
    • Sean McGinnis's avatar
      Add H216 to flag use of third party mock · b921c4de
      Sean McGinnis authored
      
      
      Many projects use mocking in their unit tests, and most do not realize
      that there is a difference between "import mock" and "import
      unittest.mock", assuming that both use a standard part of the Python
      library.
      
      We've seen many cases where mock is not listed in the project's
      requirements, but the code imports the third party mock instead of
      unittest.mock. We've also seen a few break due to this, once their
      dependencies have stopped pulling in that package for them.
      
      There have also been several projects that have taken the effort to
      switch all of there "import mock" statements over to "import
      unittest.mock", as well as removing mock from their requirements, only
      to then accidentally merge a patch that does "import mock" again because
      it is hard to notice in code reviews.
      
      This check is on by default. If a project is using the mock lib, then
      they are able to explicitly do so by disabling this check. Otherwise,
      projects don't need to take any action to get this protection, since
      this is now the recommended default.
      
      Change-Id: I8d255a00792a19279074703a8209a3699b480fd0
      Signed-off-by: default avatarSean McGinnis <sean.mcginnis@gmail.com>
      b921c4de
  9. 25 Nov, 2020 1 commit
  10. 13 Oct, 2020 4 commits
  11. 29 Sep, 2020 1 commit
    • Paras Babbar's avatar
      Move the most common hacking rules from other projects · bfc1a64a
      Paras Babbar authored
      This patch will copy the most common hacking rules used in diff.
      projects and add them to hacking itself.
      
      Currently, added assert_true_instance, assert_equal_type
      assert_raises_regexp, assert_true_or_false_with_in
      assert_equal_in
      
      Change-Id: I122d250cab90964c346e9d53046a97c25054bc00
      bfc1a64a
  12. 22 Jul, 2020 2 commits
  13. 10 Jul, 2020 1 commit
  14. 08 Jun, 2020 1 commit
    • Hervé Beraud's avatar
      drop mock from lower-constraints and requirements · 46c876fe
      Hervé Beraud authored
      The mock third party library was needed for mock support in py2
      runtimes. Since we now only support py36 and later, we don't need it
      in lower-constraints and requirements.
      
      These changes will help us to drop `mock` from openstack/requirements
      
      Change-Id: I71a09f2eddd3a344225cb69f9679e99fdeb3e2db
      46c876fe
  15. 04 Jun, 2020 2 commits
  16. 26 May, 2020 2 commits
  17. 22 May, 2020 1 commit
    • Andreas Jaeger's avatar
      Switch to newer openstackdocstheme and reno versions · 4d84a3b4
      Andreas Jaeger authored
      Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
      these versions will allow especially:
      * Linking from HTML to PDF document
      * Allow parallel building of documents
      * Fix some rendering problems
      
      Update Sphinx version as well.
      
      openstackdocstheme renames some variables, so follow the renames
      before the next release removes them. A couple of variables are also
      not needed anymore, remove them.
      
      Set openstackdocs_pdf_link to link to PDF file. Note that
      the link to the published document only works on docs.openstack.org
      where the PDF file is placed in the top-level html directory. The
      site-preview places the PDF in a pdf directory.
      
      Set openstackdocs_auto_name to use 'project' as name.
      
      Change pygments_style to 'native' since old theme version always used
      'native' and the theme now respects the setting and using 'sphinx' can
      lead to some strange rendering.
      
      See also
      http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
      
      Change pygments_style to 'native' since old theme version always used
      'native' and the theme now respects the setting and using 'sphinx' can
      lead to some strange rendering.
      
      See also
      http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
      
      Change-Id: I8e6c4b1d09e5f56b505c6006ea048baf896444c3
      4d84a3b4
  18. 19 May, 2020 2 commits
    • Masayuki Igawa's avatar
      Add PDF documentation build · 3735d2d6
      Masayuki Igawa authored
      This commit adds PDF documentation build target 'pdf-docs' that will
      build PDF versions of our docs.
      
      This is one of the Train community goals:
      
       https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html
      
      Change-Id: Iae6bc9ae92fe61385c424923eaad35dc449880e9
      Story: #2006070
      Task: #35464
      3735d2d6
    • Andreas Jaeger's avatar
      Remove py35 job · 7d496330
      Andreas Jaeger authored
      Ussuri release has capped hacking < 3.1.0 and this repo is now at 3.2.0
      and ready for victoria.
      
      Remove py35 job.
      
      This fixes building since zipp 3.1.0 is only available for python 3.6
      and newer and upper-constraints.txt requires that version, so py35 job
      fails.
      
      Remove also unneeded install_command from tox.ini.
      
      Change-Id: I07395f5ba167e849c936ad66936237ea9d90864e
      7d496330
  19. 15 May, 2020 1 commit
  20. 12 May, 2020 2 commits
    • Dmitry Tantsur's avatar
      Enable flake8 3.8.* · e664ef42
      Dmitry Tantsur authored
      It has been disabled previously to avoid pulling in new checks.
      Now it's time to re-enable it with a new release.
      
      Change-Id: Idd80085602ddb1fcf5a8d3de449866ba25a9c046
      e664ef42
    • Dmitry Tantsur's avatar
      Cap flake8 < 3.8.0 · d30425b3
      Dmitry Tantsur authored
      This version has enabled some new checks and fixed old ones, so
      CI jobs started failing. Cap it for now so that it can be release
      a patch version and then a major version uncapping it.
      
      Change-Id: If39298338ff69327379ef10d34efac0c6f164084
      d30425b3
  21. 05 May, 2020 1 commit
  22. 22 Apr, 2020 1 commit
  23. 04 Apr, 2020 3 commits