Commit Graph

74 Commits

Author SHA1 Message Date
Takashi Kajinami 6601e4a368 Bump hacking
hacking 3.0.x is too old.

Change-Id: Ib9d6282c73720e1ef3a26b8dc744a2bb9c6c9ca3
2024-01-26 01:19:47 +09:00
Hervé Beraud 0660a66e3b Bump bandit
Change-Id: I17944faf6c7b60c5844315c716dd69e2f32679f9
2023-05-19 15:46:33 +02:00
Hervé Beraud b1122e81ab 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: I04e73b8a70d32fec3e6131526e0bed0be8599c28
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-03 14:20:33 +02:00
Moisés Guimarães de Medeiros 0d087b043e 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: Ic61bffb3845a53df14765194482f6264417d0ac7
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-07-24 17:36:03 +02:00
zhangboye b403e0d89b Fix hacking min version to 3.0.1
Change-Id: Icc4607d22eb4249e6711fded27bb30ddeca7e403
2020-05-22 10:49:30 +08:00
Andreas Jaeger 4c0480648d Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 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

Update Sphinx version as well.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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.

Depends-On: https://review.opendev.org/728938
Change-Id: Ie162c8e72f4edec345c20de4517304cc14f7fe0d
2020-05-18 20:58:01 +02:00
Andreas Jaeger 4445f3296b 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: If75153300f07e6d1c5bf433af35a0dd4d98e6c7f
2020-04-02 15:05:26 +02:00
Sean McGinnis fd21b6e096
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Icd7019c924386fb9c047fc55fb98e45fcb79f2eb
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-31 14:44:54 -05:00
pengyuesheng 6c5995a952 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Ie89fa05774e224a9b8c05f0442fda7592df9aa5d
2019-10-12 14:58:52 +08:00
pengyuesheng 42b9d6ac70 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: I08fe97b5e15d7aae025f3d149c1242841d01ee5b
2019-10-10 14:29:54 +08:00
jacky06 a84402e79f Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: Ib78453ccb8fe3fa16d35bb49dd443cd6628ff932
2019-03-06 22:39:45 +08:00
Vu Cong Tuan de7e0f0df2 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: Ibee9bd5c371f6f94131cccf093ec2100e258f411
2018-07-03 16:00:44 +07:00
Doug Hellmann b9b6cc1841 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: I1ff1e6af8906539340a768cf68af3b9c388885ac
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-12 10:48:11 -04:00
OpenStack Proposal Bot abc448e44d Updated from global requirements
Change-Id: I49117280920792934351dbb86d9d7d886d4deefa
2018-03-15 07:50:39 +00:00
OpenStack Proposal Bot 4ec6b38ee3 Updated from global requirements
Change-Id: I344b5699294eca50d8a4bee93dc7ea403df873bd
2018-01-18 03:24:33 +00:00
OpenStack Proposal Bot 56f00f5164 Updated from global requirements
Change-Id: I8d6f090723fa9be7b4442d32af2c26f2da465d42
2018-01-16 04:27:39 +00:00
ChangBo Guo(gcb) 24156a438f Add bandit to pep8 job
Add the bandit security scanner to the pep8 job.
* convert assert statement to raise AssertionError
* Don't hard code '/tmp' in test
* skip B404

Change-Id: Ie30163d32dc6884667f0725f5aced809c0de82d0
2017-12-13 11:25:50 +08:00
OpenStack Proposal Bot 9cc20ef854 Updated from global requirements
Change-Id: Ie06dbb025817e9f9690e7234326a2ffd5f857bba
2017-11-16 11:21:52 +00:00
melissaml a0012b0a22 Cleanup test-requirements
python-subunit is not used directly anywhere
and it is dependency of both testrepository
and os-testr
(probably was used by some tox wrapper script before)

Change-Id: I591aefcde07a3214b845e1f85c370503c98fdbff
2017-09-25 20:50:12 +08:00
OpenStack Proposal Bot 2f03cce711 Updated from global requirements
Change-Id: Ibe1c4138a58ce8c5a2a50ab410834b6bcf03ad77
2017-09-20 16:23:17 +00:00
OpenStack Proposal Bot a2515048c5 Updated from global requirements
Change-Id: I48fc5e43ba11f180df34b03a6e4b5c08c4f66030
2017-08-18 11:40:20 +00:00
OpenStack Proposal Bot 903cddf4ed Updated from global requirements
Change-Id: Ib6832fe1b2d57648dbed619f305504fb152d04d5
2017-07-27 19:19:52 +00:00
Akihiro Motoki 8ed910128d Switch from oslosphinx to openstackdocstheme
Change-Id: Iccb9d585485ecd0181c71c08de920f4836f0d774
2017-07-08 22:27:10 +00:00
OpenStack Proposal Bot b2647a200e Updated from global requirements
Change-Id: I9c79b8f836e5dfc40972e53df09e0135302a74b4
2017-06-27 12:20:28 +00:00
OpenStack Proposal Bot 00cc60e04b Updated from global requirements
Change-Id: Id65a66a432e7806330cf8c8f6e37f23e6525f370
2017-06-10 13:35:38 +00:00
OpenStack Proposal Bot 6e925e85bc Updated from global requirements
Change-Id: I079270f7147db916d307f56da770f76abd431855
2017-06-02 22:05:34 +00:00
OpenStack Proposal Bot 42638f2bf3 Updated from global requirements
Change-Id: I2a35b4851cccfa4fbb4c6c0414ffc0bbcb0c154b
2017-05-17 13:48:10 +00:00
ChangBo Guo(gcb) ec8f632fe5 Trivial: Remove testscenarios from test-requirements.txt
We don't use testscenarios anywhere, need remove it.

Change-Id: I6fcda519942f3fd4340bc8a5d92ad25db16eec14
2017-03-28 23:31:35 +08:00
OpenStack Proposal Bot d089ff3ee9 Updated from global requirements
Change-Id: Icc4d85ffa994730d7c53fe9099cda6f7bb4783c1
2017-03-03 00:03:18 +00:00
ricolin 3d3d3237c8 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Iec7cc46234bf60e66701c64e2b1d520771dc14f3
2017-03-02 18:16:09 +08:00
OpenStack Proposal Bot 991aa5c79d Updated from global requirements
Change-Id: Ie7ea94760357df38c2da5c5ac343ab578a2d68bf
2017-02-10 05:57:55 +00:00
OpenStack Proposal Bot dad7ba43ac Updated from global requirements
Change-Id: I7f40a6f9ca05d56762d1292c2f4ed78ea33d9430
2016-11-02 15:39:24 +00:00
OpenStack Proposal Bot c6a933532e Updated from global requirements
Change-Id: Ie7f35b36e28a14a3214d607e7e0c8e54030ff317
2016-10-22 01:26:12 +00:00
Jenkins a1487259fd Merge "Add reno for release notes management" 2016-09-14 16:20:10 +00:00
Swapnil Kulkarni (coolsvap) 5d96b8665e Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: Ifb46b956bf22ae7ab0fd317e0667158ac36ba88c
2016-07-22 06:42:06 +00:00
Kirill Bespalov 1c110e0398 Add reno for release notes management
An initial patch to add reno and create a base directory for
release notes

Change-Id: I14222756c84e0d2161fea5f4df75d78cd00dccb4
2016-06-30 09:59:31 +00:00
OpenStack Proposal Bot 3a70d2ead1 Updated from global requirements
Change-Id: Ia4c6330cf6bd02e670b07e92353cf9559fa57637
2016-06-21 18:04:35 +00:00
OpenStack Proposal Bot 7ec1e73d6a Updated from global requirements
Change-Id: I39aadb58d8c75746d33cec62d7742415b92a1b68
2016-06-02 21:10:45 +00:00
OpenStack Proposal Bot cba9437bb2 Updated from global requirements
Change-Id: I7c5c5becf142b298bca604bcadeff64eee388511
2016-04-08 00:32:18 +00:00
OpenStack Proposal Bot 8e069b0cce Updated from global requirements
Change-Id: I0e54266218df3e5cf36d91a9c95be4350d7f6ae8
2016-02-19 18:55:44 +00:00
OpenStack Proposal Bot 5b0824e249 Updated from global requirements
Change-Id: Ib252e56cc056397ac4f48c6f1199846a299983d4
2016-02-11 07:43:48 +00:00
OpenStack Proposal Bot 22afa47ca7 Updated from global requirements
Change-Id: I453c08ffabab010db2a0fe1fba8071e262d334c5
2016-01-24 20:53:09 +00:00
OpenStack Proposal Bot 5965f979f3 Updated from global requirements
Change-Id: Ic0a5b3e29102579b8ed5bc85f2e64a7c597c982a
2016-01-16 03:31:25 +00:00
OpenStack Proposal Bot 10b425ada9 Updated from global requirements
Change-Id: I34854b72ac27502030663d86878b734ba8118204
2015-11-19 15:51:48 +00:00
OpenStack Proposal Bot 6775cdf26a Updated from global requirements
Change-Id: Ie21126c60fce195967598622a0290f454660a103
2015-08-04 00:48:26 +00:00
OpenStack Proposal Bot a7926af494 Updated from global requirements
Change-Id: I1368c1896bd62a9d5fb9d7d1a23522635d9958d0
2015-07-29 03:50:06 +00:00
OpenStack Proposal Bot 0174d73fed Updated from global requirements
Change-Id: I97fdea06b8d27807de66aeea8a23e81f39a694d5
2015-07-22 04:59:07 +00:00
OpenStack Proposal Bot 0620403562 Updated from global requirements
Change-Id: Iea42750cda396cafe32bc018176983ec61add739
2015-07-17 16:17:03 +00:00
OpenStack Proposal Bot 2458ab2c36 Updated from global requirements
Change-Id: I6d2e53a38da7e34ef1b94a917cd2405295d79fd9
2015-07-15 01:36:43 +00:00
OpenStack Proposal Bot c532fc8182 Updated from global requirements
Change-Id: I8196b8de6464bacce539c4b15cfd044ff69eb9a9
2015-07-12 15:21:38 +00:00