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
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
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
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
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
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
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>
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
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
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