Commit Graph

45 Commits

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

Change-Id: Ic9fa31f000821ba5a21b8b9130d23c73ae64d388
2024-01-26 01:18:18 +09:00
Hervé Beraud be7bc9ecf9 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: I382aa79f7357a86af11783f59e0f1680d5bed8d0
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-22 10:37:04 +02:00
Sean McGinnis 649189dbc4
Update lower-constraints versions
This updates lower constraints to versions that will work with py38 so
that when we move to running on focal nodes, which has py38 as its
default py3 runtime, the lower-constraints job will continue to pass.

It also cleans out some secondary requirements that are no longer needed
due to our direct dependencies being updated.

Linters are removed that are kept in the global requirements blacklist
as those are not version tracked and are not relevant for our
lower-constraints unit test runs.

Change-Id: I78945d43111fe7a2a38c17432b9dcd66a6116186
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-10 10:05:45 -05:00
Andreas Jaeger d5bc18e320 Switch to newer openstackdocstheme and reno versions
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.

Disable openstackdocs_auto_name to use 'project' variable 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.

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.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I6974f7131d7ac43b427f8ac6381aff80b9dcb884
2020-05-26 08:56:49 +02:00
Andreas Jaeger bc4ffa9f10 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Change-Id: Icff998ff9cd1d9af982c6ea9ae0a21cd6912e9e4
2020-03-30 12:00:21 +00:00
Andreas Jaeger 3e241f33da [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Cleanup tox.ini and setup.cfg from old cruft, use sphinx-build.

Change-Id: I395558c888d31925c26571f62ffc1ea556f2e2c4
Co-Authored-By: Hervé Beraud <hberaud@redhat.com>
2020-02-04 10:28:51 +01:00
Hervé Beraud efa201ec05 Update Sphinx requirement
Sphinx 2.0 no longer works on python 2.7, so we need to start capping it
there.

Change-Id: I43bda145f4c48c06faf1848c5a51af7078b97e6e
2019-05-16 15:32:05 +02:00
Vu Cong Tuan d3165af5b9 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: Ie84d18b0bcc2a33587bd72204c0eb3dad687be7e
2018-07-09 16:15:47 +07:00
OpenStack Proposal Bot 9e2a2d1a47 Updated from global requirements
Change-Id: I7bdc2d6d0c28a9177f19061e893374cbda5286bb
2018-03-15 06:50:50 +00:00
OpenStack Proposal Bot 19616fcb36 Updated from global requirements
Change-Id: I16b8a7e9eb2b9b88a48e1304a70c96bc2f79182b
2018-03-10 13:09:54 +00:00
OpenStack Proposal Bot 4e6aabb831 Updated from global requirements
Change-Id: Ia6c7aafc92a84a0d4c33faf8baac90be2fa379d8
2018-01-24 00:51:19 +00:00
OpenStack Proposal Bot dceacf1ded Updated from global requirements
Change-Id: I12b1dfc800d02aa913588632b4df949dc3fe8d64
2018-01-17 20:30:24 +00:00
OpenStack Proposal Bot 0b7885d79e Updated from global requirements
Change-Id: I6077b910ea92e360c6ca491516287a589ac0a37c
2017-11-16 11:01:06 +00:00
OpenStack Proposal Bot bdac534f8e Updated from global requirements
Change-Id: I4e3dfd0d7a238e77705e22c0a32b80f7b87d58a8
2017-09-20 16:13:05 +00:00
OpenStack Proposal Bot 37afcb7c39 Updated from global requirements
Change-Id: Idd391cbb68dc54479f82c42f2d8e48f8183afe49
2017-08-18 11:28:58 +00:00
OpenStack Proposal Bot 274f4702a4 Updated from global requirements
Change-Id: I027e6d446b1853c34c3a6fc86be35890af055da9
2017-07-27 19:08:29 +00:00
Akihiro Motoki b77c77f03e switch from oslosphinx to openstackdocstheme
Change-Id: I0dd253f90dfa2c4e5afd8d5fae3657a64788f1cf
2017-07-01 18:59:13 +09:00
OpenStack Proposal Bot 995caf1785 Updated from global requirements
Change-Id: I51c0ca508b3e5e3aa676eb697ecd0b471622a5fa
2017-06-27 12:08:59 +00:00
OpenStack Proposal Bot b609718c44 Updated from global requirements
Change-Id: I3f11129a84bdf085facea7cf99abcb18fd768e2d
2017-06-02 21:54:19 +00:00
Thomas Bechtold da416d64e2 Do not require oslotest for testing
oslotest itself depends on debtcollector and debtcollector depends
on oslotest. That's a cycle dependency which makes bootstrapping the whole
module chain more difficult.
Instead of using oslotest, just use the standard unittest.TestCase class
as base to break the dependency cycle.

Change-Id: Idcbe727883fe2742d62d463bb9a195592aeaba09
2017-05-22 17:04:30 +02:00
OpenStack Proposal Bot fba977ec77 Updated from global requirements
Change-Id: I2387ba985fa91a3cf402a8375c662920d1866ca8
2017-05-17 03:46:52 +00:00
ChangBo Guo(gcb) 154472d821 Remove testscenarios from test-requirements.txt
This may be introduced from cookiecutter. An follow up
to remove it from cookiecutter in [1]

[1] https://review.openstack.org/450279

Change-Id: I07e4b16dd037e67ed28ff03ce366c1c3c37d9b85
2017-03-27 23:02:46 +08:00
OpenStack Proposal Bot d1ac903c11 Updated from global requirements
Change-Id: Ia366a95bcbd37a0dcea11cdf7c1567ae08ab06aa
2017-02-10 05:47:50 +00:00
OpenStack Proposal Bot 4c93a710b7 Updated from global requirements
Change-Id: I55f9e2c4a7b5f52a4b19a2a0e14fb010ce2a121f
2016-11-02 15:30:51 +00:00
ChangBo Guo(gcb) bf30142ea4 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: Ia8a357ce4a42176b9bc46a715aef7158310c2cf0
2016-11-01 15:52:47 +08:00
OpenStack Proposal Bot 8e50e17333 Updated from global requirements
Change-Id: I3644a2c927f0837cd001ccac21612cbbc50bc8df
2016-10-22 01:18:15 +00:00
OpenStack Proposal Bot a44b260afe Updated from global requirements
Change-Id: I482b77fe5d8ab8e6ded7cbb036598072e467ef8a
2016-09-30 02:16:24 +00:00
Swapnil Kulkarni (coolsvap) 279bbcaa40 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I12d4b8ff74bdcf4586089d62a9f093d20d1fa3c4
2016-07-21 09:51:09 +00:00
OpenStack Proposal Bot d46b64a286 Updated from global requirements
Change-Id: I4b01c4797a3f51559405e919825853922b5bd5e8
2016-06-21 17:58:20 +00:00
OpenStack Proposal Bot 4d766d6526 Updated from global requirements
Change-Id: I0311ce835244719c8299ad23ab71dec2da82fca5
2016-05-30 00:32:44 +00:00
OpenStack Proposal Bot 29058b10a6 Updated from global requirements
Change-Id: I389e1260fb8b248e70cbbec554299c1d8450e608
2016-04-08 00:26:07 +00:00
OpenStack Proposal Bot 151ae18e84 Updated from global requirements
Change-Id: I0a0c971c8ab472e164cb1de0008c7a32970da104
2016-01-16 03:25:51 +00:00
OpenStack Proposal Bot cecf4863cd Updated from global requirements
Change-Id: I05e092bd0bcbf3ce778e52f73d6d058a27d993b0
2015-11-19 15:44:42 +00:00
Joshua Harlow 5fc9662d6c Add ability to disable warnings being emitted
Provide a helpful fixture that can be used
to disable warnings being output, for testing, or other
purporses.

Closes-Bug: #1503918

Change-Id: I2e1fd6f427ff6ee6d0b11b86ac2ff1b75dc0548c
2015-10-08 17:29:25 -07:00
Joshua Harlow 35f61710d8 Include changelog/history in docs
Also moves doc8 to test-requirements.txt which should
be its more official home instead of being in tox.ini

Change-Id: If3836b211dbb47fa6bec36ac43367139bb939243
2015-09-24 15:38:46 -07:00
OpenStack Proposal Bot f6d19baf86 Updated from global requirements
Change-Id: I71e3792ee5ddc38171d558a4e847b25c4f1f5b16
2015-08-04 00:43:58 +00:00
OpenStack Proposal Bot d44a4d23ef Updated from global requirements
Change-Id: Ic1dc195755625b1201abd075d28466add51cad91
2015-07-29 03:45:44 +00:00
OpenStack Proposal Bot cb7da3d324 Updated from global requirements
Change-Id: Id387a7c1058373a9adb9383cda52d250f6171500
2015-07-15 01:31:35 +00:00
OpenStack Proposal Bot 39f1938bfa Updated from global requirements
Change-Id: I0fc265ab00afee402fd0f03349a13efa4a086bc6
2015-06-22 08:20:11 +00:00
Doug Hellmann 62a75d74f1 Uncap library requirements for liberty
Change-Id: I5115fac689e1649e24e7317ecb5383a808d69aff
Depends-On: Ib948b756b8e6ca47a4c9c44c48031e54b7386a06
2015-04-16 17:49:16 +00:00
OpenStack Proposal Bot cd3e5d8400 Updated from global requirements
Change-Id: I86534fa91097b9a5fa99c35d66e868ce77e7a34a
2015-03-21 00:08:07 +00:00
OpenStack Proposal Bot 4932442c66 Updated from global requirements
Change-Id: If278278e133190f289eb5d453b7f41872fdfe2a6
2015-03-03 10:54:37 +00:00
Joe Gordon bab8a5b26a Move to hacking 0.10
Release notes:
http://lists.openstack.org/pipermail/openstack-dev/2015-January/054165.html

Remove deleted hacking rules from tox.ini (H803)

Change-Id: I5135a05cddd2fe185c0603e311b44ead3849e439
2015-02-12 16:01:44 -08:00
Joshua Harlow b833207aaa Initial import of renames/moves + tests
This adds the initial import (and adjustments to requirements
and code) that was initially targeted to land into oslo.utils
but now lands in this project from the following:

https://review.openstack.org/#/c/140119

This forms the basis of the debtcollector functionality (with
more to come as/when needed).

Change-Id: Icd62622a728525fab48ba4de7ee746d0add73b9b
2015-01-28 10:55:10 -08:00
Joshua Harlow 2c4e7d58dd Initial commit 2014-12-12 22:26:59 -08:00