Commit Graph

29 Commits

Author SHA1 Message Date
Takashi Kajinami e62823d134 Bump hacking
... because hacking 3.0.x is too old. pylint is also bumped to resolve
conflicting dependencies. The new version is currently used in neutron.
The pylint setting is imported from neutron with one additional
disablement to ignore the following error.

ovsdbapp/schema/open_vswitch/helpers.py:47:14: R1732: Consider using
'with' for resource-allocating operations (consider-using-with)

Change-Id: I41b4524ff13b8d46d2e0c76f09b5ec47601bd955
2024-01-27 23:14:24 +09:00
Rodolfo Alonso Hernandez dfc2c0ef9e Move linters dependencies to tox.ini
That fixes some dependency clashes in py36 job when installing
"pylint" with "astroid" library.

Closes-Bug: #1955724
Change-Id: I7cc4b779c68fe21d6ca50b6c76cdd2b6edaa7ea2
2021-12-22 02:11:49 +00:00
Flavio Fernandes 0968b410ce Fix gate failure
Bumped a bunch of constraints and requirements to fix
a gate failure with recent pip update.
Fix associated new warnings.

Change-Id: Ibc6f6025b89f2ac893471bf58794569804545b9d
2021-01-04 09:47:29 -05:00
wangzihao e2bce277e5 requirements: Drop os-testr
Drop os-testr switched to stestr

Change-Id: I44534d088134445e17c781aeef0f4cbfb8c5e429
2020-10-14 10:57:09 +08:00
Jakub Libosvar dac170c8b4 Fix pep8 job
New versions of isort broke pylint. This patch fixes it at 4.3.21.

Change-Id: Ie1b3b162e18090ae1cc90998b5a41d74b9ef2876
Depends-On: https://review.opendev.org/739469
2020-07-07 17:14:58 +02:00
Ghanshyam Mann 75322fb64f 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: I5e11540d7a97928a520944a32c3780fdef7b9d65
2020-05-12 19:48:35 -05:00
zhouxinyong e6c2f1fed1 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fixed related code warnings and updated .pylintrc.

Change-Id: I5e82d29e0d6f09b98bebdd5dbcc34b01512b28ef
2020-04-01 10:06:32 -04:00
Andreas Jaeger ac3d3de9ec Update Zuul jobs: Enable docs publishing
Start publishing docs with using the proper template.

For this, add also a doc/requirements.txt file and move docs
requirements there. Update tox.ini for this and use the modern way to
invoke sphinx-build for building.
Remove obsolete sectoins from setup.cfg.
Update the conf.py files and remove unused lines
with newer openstackdocstheme - and require newer theme.

Fix indents in CONTRIBUTING.rst so that the formatting works nicely.

Also, use lower-constraints template instead of individual jobs.

Change-Id: Ia1a7030878f12ca0b8184363173eada929ece3bd
2019-09-05 09:17:05 +02:00
ljhuang 81c124fe29 Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: I6d4b6a378435d89d409bb92e60bb34ca6dfd5af8
2019-06-27 12:43:55 +00:00
Chuck Short ac3c95c1b4 update pylint to 1.9.2
The older version of pylint being used does not work
correctly under python 3. In order to be able to
update the pylint job to run under python 3,
we need to update the tool.

Aslo fix a couple of pylint issues:

- Fix import order issues.
- Fix 'no-else-return' checks.

Added the following to the blacklist:

- inconsistent-return-statements
- catching-non-exception
- using-constant-test

Change-Id: I91a304241ebdb4d6bd15509cae8463d7b43b3c0f
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-08-21 09:36:16 -04:00
Vu Cong Tuan f631143f3c 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: I32db99af179412f46b02ced9eaf61049cbffcdb0
2018-07-10 16:23:46 +07:00
OpenStack Proposal Bot 332c7e6836 Updated from global requirements
Change-Id: Id6186f5b9ad558665b38e1765d26a55fce706925
2018-03-15 07:52:59 +00:00
OpenStack Proposal Bot e1876a8290 Updated from global requirements
Change-Id: If3d9d11dee99734b4d20bdca6f88a99079ce7252
2018-01-27 18:27:34 +00:00
OpenStack Proposal Bot 0a20f5934a Updated from global requirements
Change-Id: I6873ca4b819c96c55c6b38b083988978bad6f68c
Ida40c3e0d85b6c82779768e5656556f89e3da34c
2018-01-24 02:17:46 +00:00
OpenStack Proposal Bot 5c64956820 Updated from global requirements
Change-Id: Ic507994d13b1de8a9b8b04372a3613296b36a741
2017-11-16 11:22:31 +00:00
OpenStack Proposal Bot 07a8029700 Updated from global requirements
Change-Id: I725514090e4f01b818c5ed92075ab0018606ef63
2017-09-13 13:01:24 +00:00
OpenStack Proposal Bot ccf8b09a96 Updated from global requirements
Change-Id: Ic6f67661a6b75f7925afd3de1c504b8d732b4228
2017-09-11 21:47:42 +00:00
OpenStack Proposal Bot 92ee469daa Updated from global requirements
Change-Id: I984116291b2d67acd2e6df0ed7e3c875232979b4
2017-08-18 11:40:41 +00:00
OpenStack Proposal Bot 14f8d141b6 Updated from global requirements
Change-Id: I52ef83fb7f49235d519bef79c643605c3f7f6472
2017-07-29 02:40:34 +00:00
Akihiro Motoki 3c24077c8f Switch from oslosphinx to openstackdocstheme
Part of doc-migration work. For more detail, see:
https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html
https://etherpad.openstack.org/p/doc-migration-tracking

Change-Id: I3dd0e0eda89516228ff1eead861455920a916845
2017-07-08 17:30:46 +00:00
Jenkins e864508815 Merge "Enable pylint 1.4.5" 2017-06-30 10:23:31 +00:00
Dong Jun 15d956380b Enable pylint 1.4.5
This patch enables pylint 1.4.5 checking in ovsdbapp.
Script tools/coding-checks.sh is copied from neutron and adapted for
ovsdbapp.
.pylintrc is also copied from neutron, message options that do not
need to be suppressed have been removed.
This patch also adjusts code to fit pylint 1.7.1

Change-Id: If27c9a13798f20f3c22ca62a38cb93e7ad602a18
2017-06-30 09:54:53 +08:00
OpenStack Proposal Bot d787fc6a84 Updated from global requirements
Change-Id: I8c9e93d12221006115fbe59e6874db285064bfdc
2017-06-27 12:20:50 +00:00
OpenStack Proposal Bot f13670eccb Updated from global requirements
Change-Id: I85c23a2f68bfcfaabe6303f5884285efedd5f69c
2017-06-02 22:05:58 +00:00
OpenStack Proposal Bot bb69f69fe1 Updated from global requirements
Change-Id: I97ee20be222992cb284835e573a66ad5bd23f51f
2017-05-17 03:57:08 +00:00
OpenStack Proposal Bot 71ce425a27 Updated from global requirements
Change-Id: Ie72f5272112dc5c10897674a2b2d892876f16b18
2017-05-15 00:53:27 +00:00
OpenStack Proposal Bot b618331751 Updated from global requirements
Change-Id: I7ad64e819ef7a7918432f8d0d33a021a8d8fc193
2017-03-15 04:26:57 +00:00
Terry Wilson e299f86d06 Fix pep8/cookiecutter test running 2017-02-24 15:32:17 -05:00
Terry Wilson 81e6bf5393 Add cookiecutter output 2017-02-24 15:02:19 -05:00