forked from bartvdbraak/blender
minor pep8 edits, also added 'test_pep8' & 'test_cmake' to the GNUmakefile for convenience.
This commit is contained in:
parent
1c6956a4d6
commit
28594bc742
10
GNUmakefile
10
GNUmakefile
@ -98,6 +98,16 @@ package_archive:
|
||||
test:
|
||||
cd $(BUILD_DIR) ; ctest . --output-on-failure
|
||||
|
||||
# run pep8 check check on scripts we distribute.
|
||||
test_pep8:
|
||||
python source/tests/pep8.py > test_pep8.log 2>&1
|
||||
@echo "written: test_pep8.log"
|
||||
|
||||
# run some checks on our cmakefiles.
|
||||
test_cmake:
|
||||
python build_files/cmake/cmake_consistency_check.py > test_cmake_consistency.log 2>&1
|
||||
@echo "written: test_cmake_consistency.txt"
|
||||
|
||||
clean:
|
||||
cd $(BUILD_DIR) ; make clean
|
||||
|
||||
|
@ -125,7 +125,6 @@ def cmake_advanced_info():
|
||||
includes = []
|
||||
defines = []
|
||||
|
||||
|
||||
create_eclipse_project(CMAKE_DIR)
|
||||
|
||||
from xml.dom.minidom import parse
|
||||
|
@ -252,7 +252,6 @@ def api_changelog(api_from, api_to, api_out):
|
||||
if args_new != args_old:
|
||||
func_args.append((prop_id, args_old, args_new))
|
||||
|
||||
|
||||
if props_moved or set_props_new or set_props_old or func_args:
|
||||
props_moved.sort()
|
||||
props_new[:] = sorted(set_props_new)
|
||||
@ -263,10 +262,6 @@ def api_changelog(api_from, api_to, api_out):
|
||||
|
||||
# also document function argument changes
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
fout = open(api_out, 'w')
|
||||
fw = fout.write
|
||||
# print(api_changes)
|
||||
@ -321,7 +316,6 @@ def main():
|
||||
api_dump()
|
||||
return
|
||||
|
||||
|
||||
argv = sys.argv
|
||||
|
||||
if "--" not in argv:
|
||||
|
@ -163,7 +163,7 @@ class MakeSmoke(bpy.types.Operator):
|
||||
# create a volume material with a voxel data texture for the domain
|
||||
bpy.ops.object.material_slot_add({"object": obj})
|
||||
|
||||
mat = bpy.data.materials.new("Smoke Domain Material");
|
||||
mat = bpy.data.materials.new("Smoke Domain Material")
|
||||
obj.material_slots[0].material = mat
|
||||
mat.type = 'VOLUME'
|
||||
mat.volume.density = 0
|
||||
@ -275,7 +275,7 @@ class MakeFluid(bpy.types.Operator):
|
||||
# create a ray-transparent material for the domain
|
||||
bpy.ops.object.material_slot_add({"object": obj})
|
||||
|
||||
mat = bpy.data.materials.new("Fluid Domain Material");
|
||||
mat = bpy.data.materials.new("Fluid Domain Material")
|
||||
obj.material_slots[0].material = mat
|
||||
|
||||
mat.specular_intensity = 1
|
||||
|
@ -359,6 +359,7 @@ class BUILTIN_KSI_WholeCharacter(bpy.types.KeyingSetInfo):
|
||||
|
||||
###############################
|
||||
|
||||
|
||||
# Delta Location
|
||||
class BUILTIN_KSI_DeltaLocation(bpy.types.KeyingSetInfo):
|
||||
bl_label = "Delta Location"
|
||||
@ -406,7 +407,7 @@ class BUILTIN_KSI_DeltaRotation(bpy.types.KeyingSetInfo):
|
||||
elif data.rotation_mode == 'AXIS_ANGLE':
|
||||
# XXX: for now, this is not available yet
|
||||
#path = path_add_property(base_path, "delta_rotation_axis_angle")
|
||||
return;
|
||||
return
|
||||
else:
|
||||
path = keyingsets_utils.path_add_property(base_path, "delta_rotation_euler")
|
||||
|
||||
|
@ -31,7 +31,7 @@ import os
|
||||
# in debian install pylint pyflakes pep8 with apt-get/aptitude/etc
|
||||
#
|
||||
# on *nix run
|
||||
# python source/tests/pep8.py > pep8_error.txt 2>&1
|
||||
# python source/tests/pep8.py > test_pep8.log 2>&1
|
||||
|
||||
# how many lines to read into the file, pep8 comment
|
||||
# should be directly after the licence header, ~20 in most cases
|
||||
|
Loading…
Reference in New Issue
Block a user