4 Commits

Author SHA1 Message Date
Andreas Jaeger
1456d8b6f9 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Update local hacking checks for new flake8.

Remove hacking and friends from lower-constraints, they are not
needed in installations.

Change-Id: I67e5ca24c550163c218fb06692de0b7c528d8318
2020-04-01 21:42:41 +02:00
Marcin Juszkiewicz
bef55c5c82 do not use unversioned Python binary
We said 'bye' to Python 2 already. So let us use Python 3 for all
scripts.

Unversioned Python binary should be avoided as it may be Python2 or
Python3 (depends on distribution).

Implements: blueprint drop-py2-support

Change-Id: Ifd7912a3debf3ee4ddd8f3e1a4c5870848d4d688
2020-03-16 08:25:51 +00:00
Jeffrey Zhang
2392d7e38c Add file validator for *.json.j2 file
All json file in Kolla are json.j2 file, it shold be render as jinja
template, then validate by using json.

Change-Id: Ibabbe435116fd255d68347e00407156db76fedfe
Closes-Bug: #1634447
2016-11-05 01:16:12 +08:00
Jeffrey Zhang
3e89f987c0 Add validate no new line at end of file
TrivialFix

Change-Id: I817aa52caf56b7d54b266e553db6db1ceb38b773
Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-10-19 17:17:06 +00:00