Commit Graph

14 Commits

Author SHA1 Message Date
Ghanshyam Mann aee87c8e14 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.

Also removing the hacking and other related dep from lower-constraints file
as theose are blacklisted requirements and does not need to be present
there.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Id693765fa9216f880d7105bbac3cd60f2db8500c
2020-09-08 17:31:58 +00:00
kundan2707 7d4c5ad01c Fix pylint testing for Ubuntu Focal
As per victoria cycle testing runtime and community goal,
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing the pylint for Ubuntu Focal.

Change-Id: I1ce17f378769d3b687b8c4ed07a2d8862d14f65b
Story: #2007865
Task: #402184
2020-09-07 11:38:13 +05:30
jacky06 179acb3469 Remove the unused coding style modules
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
as they are not actually used in tests (other than pep8).

Change-Id: Ib2468762d81b0bd694c486169b05b8bbbd142cae
2020-05-11 23:58:23 +08:00
Andreas Jaeger 72de51b01c Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build with warnings enabled, fix
  warnings found with autodoc
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version, switch to using apidoc
- Remove install_command from tox.ini, the default is fine
- Change some imports to use python3 changed names

Change-Id: Ibb2e614c7db8a01e41caed8314c1d46479c78295
2020-04-12 20:58:22 +02:00
Andreas Jaeger e4396f16d3 Update hacking
Remove requirements for flake8, mccabe, pyflakes since hacking pins them
already - and the pins of hacking are different versions.

Update hacking to current release.

Change-Id: I64073e3e4cd07c45fd65bad9101693b795ec1afc
2019-08-03 11:55:12 +02:00
jacky06 a3ba38b2f8 Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Fix RST syntax in HACKING.rst
3. Update moved URLs in README.rst

Change-Id: I74bfead9b1962ad9c5e9eb2f7ab79022566085c9
2019-08-03 11:53:24 +02:00
Cai Hui b008ef902d Update tox.ini and fix pep8 errors
1.Add [testenv:lower-constraints]
2.Add lower-constraints.txt
3.Check env:UPPER_CONSTRAINTS_FILE
4.Remove  passenv parameters which are not required
5.Fix pep8 errors

Change-Id: I8ec8aac38e80a6e2b8ce9e9dc70f0cf187c0ce7c
2018-11-07 06:14:17 -05:00
Nguyen Hai 0db820b9cb Use openstackdocstheme
Change theme of docs by using openstackdocstheme

Change-Id: I26ea48e9862e1e8652aecd873b1298cdfa0bdafd
2018-08-31 06:32:16 +00:00
Doug Hellmann 97dddaba0a update pylint
The older version of pylint does not work under python 3, so update to
a newer version. Update astroid at the same time so it is a compatible
version as well.

Disable the import-error lint check since it prevents the job from
passing but the unit test jobs do work.

Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Change-Id: I2ddf8985c2b9b6286ddb4cbfd9f3edd2002223c1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-08-15 13:22:31 +09:00
Vu Cong Tuan 650bbc5755 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: Ie17b8fd07604e030e6ea6b9ded75e85794cb881a
2018-07-11 10:59:33 +07:00
zhangyangyang 1bcc0b44b8 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: I1c021424dcc66f1aa080e35fa51ef02bf22ed915
2017-09-21 14:45:45 +08:00
ricolin 2788f4f371 [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: I5eda56549ae8f4c24eb196bc20686a300018c74f
2017-03-02 22:37:16 +08:00
Saad Zaher 7d7d189545 Added .gitreview
Change-Id: I42f5bbb4a6bc12445c3ea571134a614395b0fd34
2016-05-12 13:10:52 +00:00
Saad Zaher fdbb15848f Adding pep8, pylint, coverage, sphinx testing 2016-05-09 15:00:10 +00:00