8 Commits

Author SHA1 Message Date
Andreas Jaeger
f5f53acae8 Update to hacking 0.10
Update version of hacking.

To pass our gates with the new hacking version, remove author tags.
Note: hacking needs to be manually synced.

Change-Id: I8a4db46a8df2f1e8d1cd22ae6ac421d55ac9ccce
2015-01-13 09:04:27 +01:00
Christian Berendt
b98d634dac use /usr/bin/env python instead of /usr/bin/python
Change-Id: Iaf021724a9eb06e32590e0d7d811c8fbf3161194
2014-05-23 12:11:52 +02:00
Christian Berendt
dfa10c5c5d fixed several pep8 issues
* E129 visually indented line with same indent as next logical line
  * E129 visually indented line with same indent as next logical line
  * E265 block comment should start with '# '
  * E713 test for membership should be 'not in'

Change-Id: I8488f7ad4399153d99325806fe87919c0b4cda7e
2014-05-17 08:37:07 +02:00
Andreas Jaeger
086e22e466 Require hacking for additional checks
Require hacking for additional pep8 checks to follow
OpenStack python hacking conventions.

Fix problems found by hacking.

Disable autogenerate-config-docs from check, it needs further
work to be clean enough.

Change-Id: Ib1dedf2e8262ba3d8ae1b58c4e4dbab82bbb5297
2014-01-03 11:25:56 +01:00
Andreas Jaeger
cac7a82126 Explicitely add license information to code files
Following OpenStack conventions, let's add a license header to
all code files.

Change-Id: Ia1992f3e8aba45e96cff6482613ec50df4fca980
2013-12-30 16:08:52 +01:00
Andreas Jaeger
bbf9427b38 Fix issues found by flake8
Fix overlong lines, remove unused imports, remove unused
variables

Change-Id: Ic30640891af5413d57c82a1666f81518168e4a88
2013-12-18 21:23:12 +01:00
Andreas Jaeger
ff2aba90a4 Fix cleanup tools
Adjust for manual move
Do not assume that tmpfile and target are on the same filesystem and
use copy instead of rename.

Change-Id: Ide16e541032f5bcc3ea462a9347faebdc5d7d670
2013-10-08 14:24:07 +02:00
Christian Berendt
de0d92c396 added scripts to cleanup spaces in XML files
example for remove_trailing_whitespaces.sh:

"  testing   \n" --> "  testing\n"

examples for remove_unnecessary_spaces.py:

"<testing>    foobar foobar" --> "<testing>foobar foobar"
"foobar foobar   </testing>" --> "foobar foobar</testing>"

Change-Id: Ie15a7a1491bf412ff893c84e76061ef623581145
2013-08-15 11:42:12 +02:00