Disable a bunch of pep8 tests I won't fix before gtk3 port

This commit is contained in:
Cole Robinson 2013-02-06 15:41:43 -05:00
parent 0ca8cf6d43
commit 12dcebcc0a
2 changed files with 19 additions and 3 deletions

View File

@ -1241,8 +1241,8 @@ class vmmAddHardware(vmmGObjectUI):
fmt = self.get_config_disk_format()
controller_model = None
if bus == "virtio-scsi":
bus = "scsi"
controller_model = "virtio-scsi"
bus = "scsi"
controller_model = "virtio-scsi"
# Make sure default pool is running
if self.is_default_storage():
@ -1346,7 +1346,7 @@ class vmmAddHardware(vmmGObjectUI):
disk.vmm_controller = controller
for d in controllers:
if controller_model == d.model:
disk.vmm_controller = None
disk.vmm_controller = None
self._dev = disk
return True

View File

@ -139,16 +139,32 @@ skip_pep8() {
SKIP_PEP8="${SKIP_PEP8}$1"
}
skip_pep8 "E121"
skip_pep8 "E122"
skip_pep8 "E123"
skip_pep8 "E124"
skip_pep8 "E125" # Continuation line indents
skip_pep8 "E126"
skip_pep8 "E127"
skip_pep8 "E128"
skip_pep8 "E203" # Space before : in dictionary defs
skip_pep8 "E221" # Multiple spaces before operator (warns
# about column aligning assigments
skip_pep8 "E241" # Space after , column alignment nono
skip_pep8 "E251" # No space around keyword
skip_pep8 "E261" # 2 spaces before inline comment?
skip_pep8 "E271" # Multiple spaces before keyword
skip_pep8 "E272" # Multiple spaces before keyword
skip_pep8 "E301" # 1 blank line between methods
skip_pep8 "E302" # 2 blank lines between function defs
skip_pep8 "E303" # Too many blank lines
skip_pep8 "E501" # Line too long
skip_pep8 "E711" # Comparison to False
skip_pep8 "E712" # Comparison to None
echo "Running pep8"
pep8 -r --exclude=$IGNOREFILES --ignore $SKIP_PEP8 \
$PYLINT_FILES