8 Commits

Author SHA1 Message Date
dengzhaosen
e16b0256ec update some scripts
remove the the colorizer.py which hasn't been used 
since https://review.opendev.org/c/openstack/python-cinderclient/+/502120

Change-Id: I9bed2ec947705cd53daa04678093a80581dc3282
2021-09-01 07:46:36 +00:00
Zuul
8e804292db Merge "Remove all usage of six library" 2021-03-08 16:02:59 +00:00
haixin
cea1f674ae Remove all usage of six library
Replace six with Python 3 style code.

Change-Id: I4b97e040f3e790ac114dcd43c68e6b67b1079adf
2021-03-04 16:03:35 +08:00
Luigi Toscano
755dabdc92 Bump pylint to 2.6.0
The current version does not work anymore with the current
testing stack.
Due to the bump, the wrapper needed a few changes
(maybe it could be dropped at some point?

Version 2.3.0 (used by cinder right now) was considered too,
but it requires a specific version of isort:
https://github.com/PyCQA/isort/issues/1273

Change-Id: I07fa32e7f49bde041d101a2d09860d0bc27acda0
2021-02-19 17:30:14 +01:00
Sean McGinnis
258586fb18
Update pylint to work with python 3
The pylint job was switched over to run under python 3, but
the job is not voting and it was apparently missed that the
conversion was causing it to fail.

This updates the version of pylint to one that is actually
supported by python 3 and makes tweaks to our script to
for the minor changes between versions.

Single character change to get rid of the more strict py3
regex string escape character format.

Change-Id: I93124b62c5ee177815457b32f55f5453fc3d387e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-07-23 14:05:13 -05:00
TommyLike
a6affea921 Support generalized resource filter in client
Introduce new command 'list-filters' to retrieve
enabled resource filters.

```
command: cinder list-filters --resource=volume

output:
+----------------+-------------------------------+
| Resource       | Filters                       |
+----------------+-------------------------------+
| volume         | name, status, image_metadata  |
+----------------+-------------------------------+

```

Also Added new option '--filters' to these list commands:
1. list
2. snapshot-list
3. backup-list
4. attachment-list
5. message-list
6. group-list
7. group-snapshot-list
8. get-pools

Change-Id: I062e6227342ea0d940a8333e84014969c33b49df
Partial: blueprint generalized-filtering-for-cinder-list-resource
Depends-On: 04bd22c1eb371805a3ce9f6c8915325bc0da2d36
Depends-On: 7fdc4688fea373afb85d929e649d311568d1855a
2017-05-31 11:32:49 +00:00
haobing1
74ea43450b Remove self.__dict__ for formatting strings
Following OpenStack Style Guidelines:
http://docs.openstack.org/developer/hacking/#dictionaries-lists
It is not clear as using explicit dictionaries
and help avoid some errors during refactoring.

Change-Id: If29fa568b757e8e08ec2bd8986d08e422db9eee4
2016-09-01 17:34:45 +08:00
Eric Harney
aab94fb905 Add pylint tox env
Run pylint with
 $ tox -e pylint

(Copied from Cinder with minor changes.)

Change-Id: I9d7f03c44c6da7515b433d6c87f3a1645184d491
2016-04-07 12:57:10 -04:00