Commit Graph

39 Commits

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

Change-Id: I33cd4c78c4f6c4ba8e09db7b6f175b8da2cc5f64
2024-01-26 01:14:08 +09:00
Hervé Beraud ee4c01ac43 Bump bandit
Change-Id: I818a0a186788cd219218687887d4145c41a92c7c
2023-05-17 11:39:54 +02:00
Hervé Beraud d7f6ddc55c 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: Ic88cf026a74e9da4acaf9e00c50fddd2c8a48fbe
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-08 14:17:12 +02:00
Moisés Guimarães de Medeiros 68d11969d2 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: I23fd4082e2566242b5fce093a4685c97663c947f
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-07-24 17:35:28 +02:00
zhangboye 8ba1ed6219 Fix hacking min version to 3.0.1
Change-Id: I4cc395093d9cc2f2e0c15c3578d049fbda686ef5
2020-05-22 11:51:49 +08:00
Zuul 5f49e8f688 Merge "Use unittest.mock instead of third party mock" 2020-04-06 14:57:51 +00:00
Andreas Jaeger bbae96ea23 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: I9a2a7c6cd9a0dfd02c6193ceca5653431eed3753
2020-04-02 14:57:10 +02:00
Sean McGinnis f142210025
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: Icac647c8e89cd94cae69e357b009d676b1c744f7
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-31 14:36:00 -05:00
caoyuan 3a8f29ed71 Move doc related modules to doc/requirements.txt
Change-Id: Iedf201e211648452df29fa518c069ecf41a0acf3
2019-07-06 02:15:13 +08:00
Ben Nemec 5abc1e2bf2 Cap Bandit below 1.6.0 and update Sphinx requirement
Bandit 1.6.0 accidentally changed how the exclusion list option is
handled and breaks our use of it. Cap to the previous version until
Bandit has fixed the problem.

Sphinx 2.0 no longer works on python 2.7, so we need to start capping
it there as well.

Change-Id: I24a66b454a28d00f96867fa1b24dd408591b41be
Reference: https://github.com/PyCQA/bandit/pull/489
2019-05-15 15:49:54 +00:00
ZhijunWei b033c2f346 Update hacking version
update the hacking to latest, due to[1]

[1]: https://github.com/openstack/oslo.privsep/blob/master/HACKING.rst

Change-Id: I760d81aa7b19c8df15bf9f187de8ea4945579a9c
Closes-Bug: #1815714
2019-02-13 14:46:48 +08:00
Vu Cong Tuan 58ecafb104 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: I06d7b72fcaa4ce1f8764fd51635ae8239ea649b2
2018-07-03 16:09:28 +07:00
OpenStack Proposal Bot e89c12fbb4 Updated from global requirements
Change-Id: Id9bfc06b7d977f2b4b331eac203670cce8680b2e
2018-03-15 07:50:02 +00:00
OpenStack Proposal Bot 77c463a483 Updated from global requirements
Change-Id: I4914d38b06aa554c8c6d4f2a66c4e208f4639674
2018-03-10 13:43:27 +00:00
OpenStack Proposal Bot 8abbe85b03 Updated from global requirements
Change-Id: Iec43363066aa1ababf2f1de604919e8469efc76a
2018-01-24 01:25:58 +00:00
OpenStack Proposal Bot 4b6026a933 Updated from global requirements
Change-Id: Ic0918fedaa552f7e66a82dd05f078ee729008c98
2018-01-18 03:24:15 +00:00
OpenStack Proposal Bot 77cb054076 Updated from global requirements
Change-Id: I7cb9b92c7769b7f53807b00557a6f746e3a7c1a5
2018-01-16 04:27:27 +00:00
ChangBo Guo(gcb) 518a811b9f add bandit to pep8 job
Add the bandit security scanner to the pep8 job.
* convert assert statement to raise AssertionError
* Don't hard code temporary file path
* skip B404,B603

Change-Id: If4bdb9569236927449648a8b750ae0fa2da76f53
2017-12-12 14:21:30 +08:00
OpenStack Proposal Bot f80e5cdd1a Updated from global requirements
Change-Id: I1d9134d9ec4ebddc0d4511fcbf1a50fcd5bd13fb
2017-09-20 16:23:12 +00:00
OpenStack Proposal Bot 3336c5af24 Updated from global requirements
Change-Id: I31a41dfea80dc4c472002a21e0b7d7ce97f12eb0
2017-08-18 11:40:15 +00:00
OpenStack Proposal Bot 22b144095b Updated from global requirements
Change-Id: Id575471feeb103f2dd70410ad0a8628f98bb73eb
2017-07-27 19:19:47 +00:00
OpenStack Proposal Bot d24b988022 Updated from global requirements
Change-Id: I394313fb220e29eca871cb27915ff6de5d03c81c
2017-07-13 12:47:21 +00:00
Doug Hellmann 10b2dbb376 switch from oslosphinx to openstackdocstheme
Change-Id: Ibce1f74853c68bdaeb443700070a90044e8ab28a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-07 14:48:17 -04:00
OpenStack Proposal Bot 8ed579aa60 Updated from global requirements
Change-Id: I8250e20c3315aba1b6761bdac0277f12d5abf5dd
2017-06-27 12:20:23 +00:00
OpenStack Proposal Bot 05c16b228a Updated from global requirements
Change-Id: I87088033791f78e86fe66780e3c1a56ffa481dea
2017-06-02 22:05:29 +00:00
OpenStack Proposal Bot 1974564d9a Updated from global requirements
Change-Id: I44b83eaa132cc250c4d904295b9e5d7bbf11bc91
2017-05-20 04:43:17 +00:00
OpenStack Proposal Bot 575eea12f8 Updated from global requirements
Change-Id: I70e81b9d047bd6c4e223ab6ebe1ed07ec49aad5e
2017-03-03 00:03:13 +00:00
ricolin 653b856f90 [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: I3fd302a36c11a9087a143ede4ef64a64e4eb15ba
2017-03-02 18:34:18 +08:00
OpenStack Proposal Bot 5ca4ccc75a Updated from global requirements
Change-Id: I8b676afaaabfa1e3393ac1878f4c3c39966ae1ab
2017-02-10 05:57:50 +00:00
OpenStack Proposal Bot b7cac15e7c Updated from global requirements
Change-Id: Icf35c54adc91b4ec91307aba157a104b8d42deb9
2016-11-02 15:39:21 +00:00
OpenStack Proposal Bot b5b56db9ab Updated from global requirements
Change-Id: Icc722032bc40577f598c9330b8d92e5205a2b965
2016-09-28 16:59:44 +00:00
Kirill Bespalov f0370ac773 Add reno for release notes management
An initial patch to add reno and create a base directory for
release notes

Change-Id: If4c4e681e175315b4c6c5d51d339833fd83fb560
2016-07-04 12:55:50 +03:00
OpenStack Proposal Bot 021c9116b0 Updated from global requirements
Change-Id: I47cd9c82c5cedc5b0597e70fb855faea5309f283
2016-06-21 18:04:32 +00:00
OpenStack Proposal Bot 6bcde24765 Updated from global requirements
Change-Id: Ib8ad8485602c2cf46c9dfce64191c7647bd56f6b
2016-06-03 18:18:08 +00:00
OpenStack Proposal Bot 559e035a4e Updated from global requirements
Change-Id: Ibe0546138c9374c5a95db58486b9a9b3ab2b849b
2016-04-08 00:32:15 +00:00
OpenStack Proposal Bot 6a0a42de36 Updated from global requirements
Change-Id: I57d45c101c8ba8b2975c3df5c25a541d7827cc06
2016-01-17 01:14:54 +00:00
OpenStack Proposal Bot ffee07e567 Updated from global requirements
Change-Id: Ib55b042dee8dd042aabaddc5f81e7bc992ae23d2
2015-11-19 16:00:31 +00:00
Angus Lees 025dd2476f Initial basic privsep functionality
Supports starting privileged process via fork or sudo, and a thread-safe
client and server communication mechanism.

Coming in later changes:
 - Extend json encoding to deal with non-unicode and more varied dict
   keys (see test_comm.py).
 - eventlet test case.
 - Linux capabilities.

Change-Id: If6456631c51d4f2a1c95805ab9d6962b04f172bc
Implements: blueprint privsep
2015-11-09 11:15:43 +11:00
Angus Lees 269a3d277c Initial cookiecutter project
This is the unmodified output of
cookiecutter https://git.openstack.org/openstack-dev/oslo-cookiecutter

Change-Id: I8fbc11c50bbd171b9f99bd9b5ba39eef1f686860
Implements: blueprint privsep
Depends-On: Iee84120f4da14ee3d441933a0e03a67c22fce8d1
Depends-On: Ia4d56747d56dcfe50889ebbdf9d553df13e1b950
2015-10-23 18:51:29 +11:00