Commit Graph

69 Commits

Author SHA1 Message Date
Zuul 592d8ac51a Merge "Make greenlet optional" 2024-02-13 15:43:20 +00:00
Zuul e0d7d0dda4 Merge "Add missing direct imports" 2024-02-09 15:31:05 +00:00
Takashi Kajinami cfdbc26529 pre-commit: Integrate bandit
We also remove these unnecessary linter dependencies from
test-requirements.txt.

Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: I36a6469231a8ce78f06c9b858d35c161f4d22799
2024-02-07 12:03:18 +09:00
Takashi Kajinami 7bd342040c pre-commit: Bump versions
hacking now has a native hook.

Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: I68d56d589be90285fff63b670c5e7b79b53611d3
2024-02-07 12:01:48 +09:00
Takashi Kajinami e43ae1115c Make greenlet optional
The greenlet library is not always used. It is used to capture detail
of green threads but this part can be skipped in case greenlet is not
present.

Also eventlet in test requirements is not used and can be removed.

Change-Id: I57edfe4d975ce42ca92a9242d4b32e69d1cec268
2024-02-07 11:56:36 +09:00
Vasyl Saienko 489fe7c8fb Add missing direct imports
This patch adds oslo.config and greenlet to requirements as
they directly imported in the code.

Change-Id: Id20cf36b8e079501418764637176a539315cc8d9
2024-02-06 12:29:54 +00:00
Takashi Kajinami c291a945eb Bump hacking
hacking 3.0.x is too old.

Change-Id: If01c70a710e3b0b715a0d26dd67a9169184b25cb
2024-01-26 01:28:06 +09:00
Hervé Beraud f35998a13e Bump bandit
Change-Id: I15fd6db0c4910bc8af212289d77c38b2e9dc2a04
2023-05-17 15:28:17 +02:00
zhoulinhui 6b2ad67208 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Ia71dc29dedb6786c4df4546bb4e7df6956966ec0
2020-10-16 01:21:28 +00:00
Hervé Beraud f8cd4689e9 Adding pre-commit
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.

Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.

pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
  shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
  calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)

For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks

Change-Id: I5190044fed75d4c68e9d2686d9ab67b2afa0f9e0
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-22 10:42:28 +02:00
Zuul bc631aedef Merge "Bump bandit version" 2020-08-06 16:36:25 +00:00
Ghanshyam Mann e45d4e97e5 [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40207

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.h>

Change-Id: I98cf0e5cee8f1996943b6274e914fcbca667fef7
2020-08-04 03:45:57 +00:00
Moisés Guimarães de Medeiros 8de1a71062 Bump bandit version
This patch bumps bandit allowed version to >=1.6.0,<1.7.0 in order to
avoid the errors detailed here https://github.com/PyCQA/bandit/pull/393

Change-Id: I4ccbdbb692e2e0b00a2517e2c5eb617756637ab0
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-07-24 17:35:46 +02:00
Andreas Jaeger 4838541e98 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: I76369aad2778418182eab7c3eaf331b8d6b8fb1d
2020-04-02 14:59:15 +02:00
caoyuan f35e099910 Move doc related modules to doc/requirements.txt
Change-Id: Ice407c712b5438b06c4f439c73946640a0c5a86c
2019-07-06 00:52:54 +08:00
gujin 25dc067cb7 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

This change fixes `requirements-check` Zuul job.

Change-Id: I9c3dff8c0a87d3bad327f83770f8a6f8484abac6
Closes-Bug: #1831410
2019-06-03 11:01:04 +08:00
ZhijunWei 8171c03846 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I8c82e52e03b2489aca0b70de761da5ac328c7b9c
2019-02-17 11:16:48 +08:00
Vu Cong Tuan 8d49f91349 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Id762418616487dfb0955675b7c50085b48307879
2018-07-03 16:05:38 +07:00
Doug Hellmann 409c15e175 fix lower constraints and uncap eventlet
Fix the lower constraints values to match the expected values.

We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

Change-Id: I2974d8d119664e6d21decc6f4fc5b16fdb5724a0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-12 10:47:33 -04:00
OpenStack Proposal Bot 9dcee1dd2e Updated from global requirements
Change-Id: Id9f73c81af98a317e26c98ff8915149858f32dad
2018-03-15 07:50:21 +00:00
OpenStack Proposal Bot 9e346710d0 Updated from global requirements
Change-Id: I84dc2eee6d9566972aa36ad019bf9e3cc6ca57d1
2018-01-24 01:26:05 +00:00
OpenStack Proposal Bot 1e05b90371 Updated from global requirements
Change-Id: Ic02b5513b4dacdf69a46a8dad4125647b4bfafeb
2018-01-18 03:24:23 +00:00
OpenStack Proposal Bot 882c7f37ca Updated from global requirements
Change-Id: I9d6ec512c44cd8bc95314c20dff044546a879182
2018-01-16 04:27:35 +00:00
ChangBo Guo(gcb) 4dde5f3cb2 Add bandit to pep8 job
Add the bandit security scanner to the pep8 job.
* skip B314,B405
* Don't use '/temp/file'

Change-Id: I5ae66767178d037d312eb2ab0374dd6f137ecc7b
2017-12-12 14:42:13 +08:00
OpenStack Proposal Bot af284adc73 Updated from global requirements
Change-Id: I8fbb71f1be60c1453a044c27bde81e46becf84e8
2017-11-29 09:15:39 +00:00
OpenStack Proposal Bot 42b861b4cc Updated from global requirements
Change-Id: I300026a15361b17544c2783bd568bf81bad5992c
2017-09-20 16:23:14 +00:00
OpenStack Proposal Bot eefa87ff3c Updated from global requirements
Change-Id: I9d9d2347060cdf9099f2820bac9847c980ebb687
2017-09-11 21:47:19 +00:00
OpenStack Proposal Bot a1ca8270ac Updated from global requirements
Change-Id: I5904b3558837fa18adcf9c9b53705d0f19cc5773
2017-08-18 11:40:17 +00:00
OpenStack Proposal Bot c75749bd54 Updated from global requirements
Change-Id: Ic2475b31e57e5ed8c0f23bb44aabb01a231f2f28
2017-07-27 19:19:50 +00:00
ChangBo Guo(gcb) 1481aaf84e switch from oslosphinx to openstackdocstheme
Change-Id: Ic821995f1875ea16702f47d489f013633ffda93d
2017-07-03 12:41:24 +08:00
OpenStack Proposal Bot 05f4484cbc Updated from global requirements
Change-Id: I5f3acd7872fbc98dc9cc3d8311645ff532fe142f
2017-06-27 12:20:25 +00:00
OpenStack Proposal Bot 3a3c1967b2 Updated from global requirements
Change-Id: I73bb15986435c7e35405ef51526ffdf1a058da87
2017-06-15 16:33:09 +00:00
OpenStack Proposal Bot 6cb723f6da Updated from global requirements
Change-Id: I6004612670ac0f03bb216bf3a1d21b1371357933
2017-06-10 13:35:35 +00:00
OpenStack Proposal Bot 32e3eee342 Updated from global requirements
Change-Id: I1876232b92250b4ed0e06fd77c941c5a2dc3a55a
2017-06-02 22:05:32 +00:00
OpenStack Proposal Bot 47f81b997c Updated from global requirements
Change-Id: I639d2ee815023a982402a9f3ecffe47764348748
2017-06-02 02:35:14 +00:00
OpenStack Proposal Bot e5637011e5 Updated from global requirements
Change-Id: Iefe79e8ec416685eded4b70753a7b03bda8d6182
2017-05-17 13:48:08 +00:00
OpenStack Proposal Bot ee3ad23527 Updated from global requirements
Change-Id: I5e418555db98caed31a9910c184fbf2d2f843cac
2017-05-15 00:53:05 +00:00
OpenStack Proposal Bot 8c5f348b60 Updated from global requirements
Change-Id: Ifae50c68f54075b2c2f512bf3acd635769e714c9
2017-03-13 19:40:15 +00:00
OpenStack Proposal Bot a648cec0b2 Updated from global requirements
Change-Id: I213e80b27c99cf404cbb6a0f249f10fd41425043
2017-02-10 05:57:53 +00:00
OpenStack Proposal Bot 3db94ff616 Updated from global requirements
Change-Id: I07699e84c0a413348242bd574bc540088e87a759
2017-01-12 09:43:30 +00:00
Dirk Mueller c646f41a3e Bump hacking dep
It passes so nothing else to do

Change-Id: I954861269166ba1b1dc3365f1c0a964ea9ec1fc6
2016-12-09 21:49:30 +01:00
Jenkins aea5a98ee0 Merge "Add reno for release notes management" 2016-11-05 13:47:58 +00:00
ChangBo Guo(gcb) 0976c28108 Add reno for release notes management
The release management team have indicated this is their preferred way
to collect release notes in future.

Closes-Bug: #1634356

Change-Id: I224fe780872604085e543dd94e6e161cc227acc7
2016-11-05 20:15:18 +08:00
OpenStack Proposal Bot f2cf774768 Updated from global requirements
Change-Id: I6d9d7eb288e2973080b36da22e93a5f71b93481a
2016-10-27 12:21:23 +00:00
OpenStack Proposal Bot 9e456776d0 Updated from global requirements
Change-Id: I1e319c9af26aa92618617128aaff103436ad8814
2016-10-22 01:26:10 +00:00
OpenStack Proposal Bot f4bc2524c0 Updated from global requirements
Change-Id: Iedbd5a4f40cb47d1a5698212cfbd8c2150c021c4
2016-09-28 16:59:45 +00:00
OpenStack Proposal Bot d332969661 Updated from global requirements
Change-Id: Id28a46edde01f7cdac4e7b12bec89accd23c1cc8
2016-08-04 02:40:52 +00:00
OpenStack Proposal Bot 4b37e3073a Updated from global requirements
Change-Id: I5752a7bcf09e59cd4011bd03ce77e27479a1c477
2016-07-09 19:26:02 +00:00
OpenStack Proposal Bot 30cfeabcce Updated from global requirements
Change-Id: I6b61c26bbe324fc6e75afb6a1b94f8dc43b88625
2016-06-21 18:04:34 +00:00
OpenStack Proposal Bot 3804e060de Updated from global requirements
Change-Id: I8f756f6411eb38f417d580930034c61ba83be320
2016-06-03 18:18:09 +00:00