Cleanup: pep8
This commit is contained in:
@@ -163,7 +163,7 @@ if USE_ATTRSET:
|
||||
if issubclass(cls, skip_classes):
|
||||
continue
|
||||
|
||||
## to support skip-save we cant get all props
|
||||
# # to support skip-save we cant get all props
|
||||
# properties = cls.bl_rna.properties.keys()
|
||||
properties = []
|
||||
for prop_id, prop in cls.bl_rna.properties.items():
|
||||
|
@@ -117,7 +117,18 @@ def main():
|
||||
|
||||
# these are very picky and often hard to follow
|
||||
# while keeping common script formatting.
|
||||
ignore = "E122", "E123", "E124", "E125", "E126", "E127", "E128"
|
||||
ignore = (
|
||||
"E122",
|
||||
"E123",
|
||||
"E124",
|
||||
"E125",
|
||||
"E126",
|
||||
"E127",
|
||||
"E128",
|
||||
# "imports not at top of file."
|
||||
# prefer to load as needed (lazy load addons etc).
|
||||
"E402",
|
||||
)
|
||||
|
||||
for f, pep8_type in files:
|
||||
|
||||
|
@@ -28,13 +28,14 @@
|
||||
|
||||
import collections
|
||||
|
||||
Directive = collections.namedtuple('Directive',
|
||||
("type",
|
||||
"value",
|
||||
"value_strip",
|
||||
"line",
|
||||
"indent",
|
||||
"members"))
|
||||
Directive = collections.namedtuple(
|
||||
"Directive",
|
||||
("type",
|
||||
"value",
|
||||
"value_strip",
|
||||
"line",
|
||||
"indent",
|
||||
"members"))
|
||||
|
||||
|
||||
def parse_rst_py(filepath):
|
||||
@@ -80,7 +81,7 @@ def parse_rst_py(filepath):
|
||||
return tree[0]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main():
|
||||
# not intended use, but may as well print rst files passed as a test.
|
||||
import sys
|
||||
for arg in sys.argv:
|
||||
@@ -88,3 +89,7 @@ if __name__ == "__main__":
|
||||
items = parse_rst_py(arg)
|
||||
for i in items:
|
||||
print(i)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Reference in New Issue
Block a user