| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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: Ifc5ee35d399c628604ec1644eb447936803c45f5
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
|
|/
|
|
|
|
|
|
| |
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: I0b8b5a8899b22744cfd65b5e889a6283aec9ddfe
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
|
|
|
|
| |
Change-Id: I95cb5bd989ec10e6bcc8f7f2aea9aa81c3e79dd6
|
|
|
|
|
|
|
|
|
|
|
| |
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Update classifiers
- Use newer openstackdocstheme version
- Switch to hacking 3.0, fix problems found
Change-Id: I539b00204279c7645ef4a3f804f64a1e7af30f05
|
|
|
|
|
|
|
|
| |
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: I15fc9e39d69f817fb5db8ce7111d0397a25c94b0
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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: Ifdad77dfc957ed90da88efe729cc6b35e96f0392
Reference: https://github.com/PyCQA/bandit/pull/489
|
|
|
|
|
|
| |
Use latest release 1.1.0 and compatible changes w.r.t pep8
Change-Id: I80abc19501fafe2397f3362719182fea870fdca7
|
|
|
|
|
|
|
|
|
|
| |
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: I9b230222866d41a12713f321cee88da896ba76a1
|
|
|
|
|
|
|
|
|
|
|
|
| |
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
Change-Id: I35fb490d34af834182522a856d6ab7e24d0ec678
|
|
|
|
| |
Change-Id: I0500df5e85a580dca97636bd859d444e351f31b0
|
|
|
|
| |
Change-Id: I25430886340a31c45b3c378af040c6891aad71f0
|
|
|
|
| |
Change-Id: I1e892b7d12929e7629052cfe3de0c8b021871dbf
|
|
|
|
|
|
| |
Add the bandit security scanner to the pep8 job.
Change-Id: Ib4707b55c190b117410212cef7f5afc789c91583
|
|
|
|
| |
Change-Id: Id3828421ece02140a525625a20ea870efa3314cd
|
|
|
|
| |
Change-Id: Ib6924ccd93a97065c8788ba556547fd7e128f25a
|
|
|
|
| |
Change-Id: Ic6a97a7c7485b13a6baa67a52de4debff2f5f088
|
|
|
|
| |
Change-Id: Id0b164467e0b5ef620067dd3665c21911cab08a3
|
|
|
|
| |
Change-Id: If5c0e4057e7a4f37824a1c866e78df512f34fa0b
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
charset is required when response with body
Closes-Bug: #1707127
Change-Id: I9921c67866d252f972954eed5afbc90389e06c3f
|
|/
|
|
| |
Change-Id: I9738946929409bc3f811be99c71c9a703ce3a6cd
|
|
|
|
| |
Change-Id: Iadf4ea330b79dd81e5eed98b145798fe29c64c70
|
|
|
|
| |
Change-Id: I8c8e7b477e2d4c362d1f67928464d9e0a7c3631a
|
|
|
|
| |
Change-Id: Ibef33fb34d4e6848f4a116749f07c16afe7ae1a7
|
|
|
|
| |
Change-Id: I60da2b02b5a758dc6ef57077d0e8dbb88c90ddff
|
|
|
|
| |
Change-Id: Ia6f0c93b68aef3baa5099ad51587cecd2ab923c7
|
|
|
|
|
|
|
|
|
| |
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: Ifd5506f7cbaeda3ce198e8e3213dcfbf629a8c90
|
|
|
|
| |
Change-Id: I4a7664a970bd14deb09a765707588509a2197e5f
|
|
|
|
| |
Change-Id: I89394ebfe69077027322038a13e7a275c43b8a78
|
|
|
|
| |
Change-Id: Id67ce4576ba7ff2d9b1434fbc87f61e3dbb9f4d8
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
An initial patch to add reno and create a base directory for
release notes
Change-Id: I2fa27beb5d7e2c898ce567dce2add00ccdb54afe
|
| |
| |
| |
| | |
Change-Id: Ic1ee3e75669ce54bdb329fb0d77acb2b2ea78d44
|
| |
| |
| |
| | |
Change-Id: I69f586a1c9180684dc9626eddd745f32dae94a1b
|
| |
| |
| |
| | |
Change-Id: I450fc87dbd6ad80875110512c100d28095a15194
|
|/
|
|
| |
Change-Id: Ia3307d02ecf4d58cd6972945767e426f31200d59
|
|
|
|
| |
Change-Id: If77cfc44d507a80d6e59fa6fbcce105f3c3b7001
|
|
|
|
| |
Change-Id: Ife0027f8dfdf48111176c1c40806616026ee1890
|
|
|
|
| |
Change-Id: I181a596f4a8e6d70f835b05c90479aa3d2a8f373
|
|
|
|
| |
Change-Id: Ic83bad4c1d57c087d4b316b033f53b0cf78869f9
|
|
|
|
| |
Change-Id: Ib09f808f176ace0455365c44893b689d3651fcd4
|
|
|
|
| |
Change-Id: I8fbff54589b9edada072c9fa871bf8f6b41c9397
|
|
|
|
| |
Change-Id: I649c1aa12a3458d22ef745f5f614ec76250e3bf2
|
|
|
|
| |
Change-Id: I6a1f892958bc08f6fab21b08925561c36ce7221e
|
|
|
|
|
|
|
|
|
|
|
| |
Call the right assertion method on the mock in
test_disablefile_unconfigured, and fix the way the mock is set up so
it works.
Combine this with the change to pin the version of mock used on python
2.6 and to raise the minimum version of mock used elsewhere.
Change-Id: I1ac9f9796227a860df75d4c72464479dbe66258c
|
|
|
|
| |
Change-Id: I7436bd0fad903c362bdc474397a43447874cd7cc
|
|
|
|
| |
Change-Id: I9ceca37d91690cbb66ad8789b9a72a92cd450170
|
|
|
|
|
| |
Change-Id: Ibb6b10a15a26b442b5cbf03c378ebf17f9487e58
Depends-On: Ib948b756b8e6ca47a4c9c44c48031e54b7386a06
|
|
|
|
| |
Change-Id: Ie93fdb724aa9593db076121c52e5e42ad772acf1
|