Skip to content

Commit e6ac5df

Browse files
committed
Fix python code style warning
1 parent 44735f4 commit e6ac5df

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ignore-patterns=^\.#
6464
# manipulated during runtime and thus existing member attributes cannot be
6565
# deduced by static analysis). It supports qualified module names, as well as
6666
# Unix pattern matching.
67-
ignored-modules=cairo,protos
67+
ignored-modules=cairo,protos,lglpy.timeline.protos.*
6868

6969
# Python code to execute, usually for sys.path manipulation such as
7070
# pygtk.require().

generator/generate_vulkan_common.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -585,16 +585,19 @@ def generate_instance_queries(
585585
# Define the concept to test if user_tag specialization exists
586586
plist = []
587587
nlist = []
588-
for i, (ptype, pname, array) in enumerate(command.params):
588+
for (ptype, pname, array) in command.params:
589589
plist.append(f'{ptype} {pname}{array}')
590590
nlist.append(pname)
591-
plistStr = ', '.join(plist)
592-
nlistStr = ', '.join(nlist)
591+
plist_str = ', '.join(plist)
592+
nlist_str = ', '.join(nlist)
593593

594594
lines.append('/* Test for user_tag availability. */')
595595
decl = f'template <typename T>\n' \
596-
f'concept hasLayerPtr_{command.name} = ' \
597-
f'requires(\n {plistStr}\n) {{\n layer_{command.name}<T>({nlistStr});\n}};'
596+
f'concept hasLayerPtr_{command.name} = requires(\n' \
597+
f' {plist_str}\n' \
598+
f') {{\n' \
599+
f' layer_{command.name}<T>({nlist_str});\n' \
600+
f'}};'
598601
lines.append(decl)
599602
lines.append('')
600603

@@ -925,16 +928,19 @@ def generate_device_queries(
925928
# Define the concept to test if user_tag specialization exists
926929
plist = []
927930
nlist = []
928-
for i, (ptype, pname, array) in enumerate(command.params):
931+
for (ptype, pname, array) in command.params:
929932
plist.append(f'{ptype} {pname}{array}')
930933
nlist.append(pname)
931-
plistStr = ', '.join(plist)
932-
nlistStr = ', '.join(nlist)
934+
plist_str = ', '.join(plist)
935+
nlist_str = ', '.join(nlist)
933936

934937
lines.append('/* Test for user_tag availability. */')
935938
decl = f'template <typename T>\n' \
936-
f'concept hasLayerPtr_{command.name} = ' \
937-
f'requires(\n {plistStr}\n) {{\n layer_{command.name}<T>({nlistStr});\n}};'
939+
f'concept hasLayerPtr_{command.name} = requires(\n' \
940+
f' {plist_str}\n' \
941+
f') {{\n' \
942+
f' layer_{command.name}<T>({nlist_str});\n' \
943+
f'}};'
938944
lines.append(decl)
939945
lines.append('')
940946

lgl_android_install.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,12 +612,12 @@ def configure_server(conn: ADBConnect,
612612
instance = server.CommsServer(0)
613613

614614
if timeline_file:
615-
serviceTL = service_gpu_timeline.GPUTimelineService(timeline_file)
616-
instance.register_endpoint(serviceTL)
615+
service_tl = service_gpu_timeline.GPUTimelineService(timeline_file)
616+
instance.register_endpoint(service_tl)
617617

618618
if profile_dir:
619-
serviceProf = service_gpu_profile.GPUProfileService(profile_dir)
620-
instance.register_endpoint(serviceProf)
619+
service_prof = service_gpu_profile.GPUProfileService(profile_dir)
620+
instance.register_endpoint(service_prof)
621621

622622
# Start it running
623623
thread = threading.Thread(target=instance.run, daemon=True)

0 commit comments

Comments
 (0)