Commit Graph

75 Commits

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

Change-Id: Id9565ec8a49d6482b6de1527d6ab190eb9594372
2024-01-26 01:28:26 +09:00
Hervé Beraud 05f9961e7a Bump bandit
Change-Id: I5ade4b39983998c1e159da6181292a3f3d229b26
2023-05-17 17:31:58 +02:00
zhoulinhui 720230d9dd 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: I87fdbf691c0b2b0abdf629b358d875d955b14015
2020-10-16 01:19:48 +00:00
Hervé Beraud 05356e6ac8 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: I093ca79022578b99bdb3ef78e887eef9bc3310ad
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-22 10:27:36 +02:00
Moisés Guimarães de Medeiros 73187bd869 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: I0d07c9051addcbef37d48bfa84d612ef45ea105c
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-07-24 17:33:21 +02:00
Sean McGinnis 34aaaf2eb5
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: I597461bc2ce6a480ea18950ded606ef7db717f2d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-31 15:55:50 -05:00
Andreas Jaeger e7908d07f9 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Blacklist:
W504 line break after binary operator

Change-Id: I8081a5f723c6b9fda65d72567fa1514f760c47da
2020-03-30 12:00:32 +00:00
Adam Spiers a6e330857b Move doc related modules to doc/requirements.txt
Change-Id: Ice407c712b5438b06c4f439c73946640a0c5a86d
2019-07-05 17:40:32 +00:00
Ben Nemec 810d60a557 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: Id9a875393e42d9fc54d8c571d368180fec122839
Reference: https://github.com/PyCQA/bandit/pull/489
2019-05-15 15:20:46 +00:00
ZhijunWei 362e1ed468 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: Ibf57026264450c427916e8fba25f67c9f7aaa84e
Closes-Bug: #1815714
2019-02-13 14:19:10 +08:00
Vu Cong Tuan e690af4a3c 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: I43565d0f5b89f0b6d438f88dab941688ee3aef5c
2018-07-03 16:10:13 +07:00
OpenStack Proposal Bot 847cf0db21 Updated from global requirements
Change-Id: Id397601d20b67a493e243fcc1ec987ee782517de
2018-03-15 07:48:28 +00:00
OpenStack Proposal Bot 5fa18dccd9 Updated from global requirements
Change-Id: Iaf36b1718a8d8db2abdddb0cd119a387a0d14fbc
2018-01-24 01:25:19 +00:00
OpenStack Proposal Bot 3881d9d073 Updated from global requirements
Change-Id: I9d7161c4c81a80d7dd6d31e6b0d298aa6f58b5d9
2018-01-18 03:23:31 +00:00
OpenStack Proposal Bot 6284ebae14 Updated from global requirements
Change-Id: I8fc05ba489ba185bc29dbc012f87810a41440066
2018-01-16 04:26:51 +00:00
Zuul 426b2cdcd0 Merge "add bandit to pep8 job" 2017-12-13 03:04:24 +00:00
ChangBo Guo(gcb) 7a84979365 add bandit to pep8 job
Add the bandit security scanner to the pep8 job.

Change-Id: I7b01e7edde84fb6c6860724c933b1dd70306c666
2017-11-30 11:18:40 +08:00
OpenStack Proposal Bot 8c78fb3551 Updated from global requirements
Change-Id: I9c684368d3404d28501999ceb8973c343976ad09
2017-11-29 09:14:57 +00:00
OpenStack Proposal Bot 0842886e09 Updated from global requirements
Change-Id: Id29c0ce6fe41734c042bfb35a920b84a9cbd8906
2017-09-20 16:22:57 +00:00
OpenStack Proposal Bot d808cf6573 Updated from global requirements
Change-Id: I7deccc196f192b491c87dd81444e04630d49471e
2017-09-11 21:28:10 +00:00
OpenStack Proposal Bot df2e57a874 Updated from global requirements
Change-Id: I4b5d4458ad62f4caf6b714bd540087a6f8489697
2017-08-18 11:40:00 +00:00
OpenStack Proposal Bot aab504740f Updated from global requirements
Change-Id: Ia565699213aee7b78168aedbdbab388798262be7
2017-07-27 19:19:33 +00:00
Doug Hellmann da9de62db0 switch from oslosphinx to openstackdocstheme
Change-Id: I0169e752c5043ff488c9917cf72c9bb57e866c2f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-29 14:30:24 -04:00
OpenStack Proposal Bot 1cf2f426ce Updated from global requirements
Change-Id: I370ee645199a4cca5892a9aa53099560ee02bff0
2017-06-27 12:20:08 +00:00
OpenStack Proposal Bot 431986c3c3 Updated from global requirements
Change-Id: I0e56a0adfcd205ab9883df5b7a74158785da7451
2017-06-15 16:32:51 +00:00
OpenStack Proposal Bot 9c760a6930 Updated from global requirements
Change-Id: I4688c5c8fdbd686ebb19addba7c805d34154ca3b
2017-06-02 22:05:14 +00:00
OpenStack Proposal Bot f84a7ccb40 Updated from global requirements
Change-Id: I715d95cf39997d4e1191784386c54efdb1e2be6f
2017-06-02 02:34:56 +00:00
Akihiro Motoki b9eed49961 Revert "Remove Babel as a runtime requirement"
This reverts commit 0658992b0b.

The reverted commit moves Babel to test-requirements.txt
but Babel is a run-time requirement as _gettextutils imports Babel.
As a result, oslo_i18n 3.15.2 cannot be imported.

Closes-Bug: #1692773
Change-Id: I97ae11925462b2e21ede5d9573e90ee21fb7e4d2
2017-05-23 13:25:52 +09:00
OpenStack Proposal Bot 66a3e38e8a Updated from global requirements
Change-Id: Ia2ee90686cf2a5eb753bcdb871d6e41ef44ee2c7
2017-05-17 13:47:53 +00:00
Julien Danjou 0658992b0b Remove Babel as a runtime requirement
It's not.

Change-Id: I7a6a194bfd73a7e64c2a4e260c242af1e7de7986
2017-05-16 17:17:33 +02:00
OpenStack Proposal Bot 9d76e94a7f Updated from global requirements
Change-Id: I5a9728d4562d883649f364afdabd2a0af9e21407
2017-05-15 00:52:50 +00:00
OpenStack Proposal Bot 32b4c1e10c Updated from global requirements
Change-Id: I152fadaa7e5ca1a86f1cbd2d4461343f0e8e92ee
2017-03-13 19:39:56 +00:00
OpenStack Proposal Bot c103d6f682 Updated from global requirements
Change-Id: Ic14c59a7d9604ee6f545cf19808d42e343359173
2017-03-03 00:03:02 +00:00
ricolin 0eb1d9aa81 [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: I3f0ab9b3bddc40ca3bc8e0ebc05905b8242c0a61
2017-03-02 18:20:44 +08:00
OpenStack Proposal Bot b95634c8ca Updated from global requirements
Change-Id: I17b6ab463e2925f9f5bbd709ceeaa2f4872f2a59
2017-02-10 05:57:38 +00:00
OpenStack Proposal Bot 0820ffa87c Updated from global requirements
Change-Id: I517cdb48dc18207933a4af5b1212de97aa2f1695
2016-11-02 15:39:09 +00:00
OpenStack Proposal Bot 779659dff2 Updated from global requirements
Change-Id: Idec8710c5b423fd2ecdb1223564982c59628663e
2016-11-02 03:09:34 +00:00
ChangBo Guo(gcb) 048adf1806 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: If53420002eb88e894aad97290fe20b8180e4e197
2016-11-01 20:49:52 +08:00
ChangBo Guo(gcb) a46375bff5 Add missing dependency testscenarios
We use module testscenarios in tests but don't include it
in test-requirements.txt.

Closes-Bug: #1638276

Change-Id: I759c5168fbcdf8dcee04a86c164fb98451217a37
2016-11-01 20:38:34 +08:00
OpenStack Proposal Bot 7f8f771172 Updated from global requirements
Change-Id: I98469d0198be689d6e04aa1905f0c42db420b9e0
2016-09-28 16:59:34 +00:00
OpenStack Proposal Bot 757a65401c Updated from global requirements
Change-Id: I6d203e451ec3dc43f908314b091b9d7887077914
2016-08-04 02:40:42 +00:00
OpenStack Proposal Bot 16f40a6392 Updated from global requirements
Change-Id: Ic5c49ae66607222bb0f933d251112bf76ee7acbc
2016-07-09 03:16:08 +00:00
OpenStack Proposal Bot 82e8a6343e Updated from global requirements
Change-Id: If0e7b936a012425ad9954a39b6ac013508187e6e
2016-06-21 18:04:23 +00:00
OpenStack Proposal Bot 8845373ddc Updated from global requirements
Change-Id: I997d22a713f48130b2dfce55b8d08bcdc9ca8b26
2016-06-03 18:17:57 +00:00
OpenStack Proposal Bot 21e78dacbf Updated from global requirements
Change-Id: I0b3b180ebf42486467168351c540b1a961dfe0e7
2016-04-07 17:13:10 +00:00
OpenStack Proposal Bot 9f0a3c3df9 Updated from global requirements
Change-Id: I377d5e09121cd4abbb35d2cebd7f310a32627fda
2016-02-26 01:52:20 +00:00
OpenStack Proposal Bot 5af6d87eba Updated from global requirements
Change-Id: I6dcd76a9b3823184162735a4e1ef668d6cbcc7d8
2016-01-26 23:27:52 +00:00
OpenStack Proposal Bot 9262525e5b Updated from global requirements
Change-Id: Ic22556defbad71d2cc67c39e925e8c01afe37dbc
2016-01-16 03:31:11 +00:00
OpenStack Proposal Bot b9aa5e8c17 Updated from global requirements
Change-Id: I2acb86a59a8ec9b4f14afff7a125d23a6da3c0c9
2016-01-06 23:18:31 +00:00
OpenStack Proposal Bot 499c2b87b6 Updated from global requirements
Change-Id: Ie4d0c752820b0b97359d4c3c4a8e4d0136a8fa2c
2015-11-19 16:00:21 +00:00