Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit 60908de

Browse files
committed
fix(TCs): flake8 complained about examples
1 parent 658bd0c commit 60908de

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tests:
2828

2929
flake8 --exclude=__init__.py,memory_profiler.py pycallgraph
3030
flake8 --ignore=F403 test
31-
flake8 examples
31+
flake8 examples --exclude=all.py
3232

3333
doc:
3434
cd docs/examples && ./generate.py

examples/graphviz/example_with_submodules/example_with_submodules.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ def main():
99
s2 = SubmoduleTwo()
1010
s2.report()
1111

12+
1213
if __name__ == "__main__":
1314
main()

examples/graphviz/recursive.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ def main():
2020
for a in xrange(1, 10):
2121
factorial(a)
2222

23+
2324
if __name__ == '__main__':
2425
main()

examples/graphviz/regexp.py

100755100644
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ def main():
1515
config = Config(include_stdlib=True)
1616

1717
with PyCallGraph(output=graphviz, config=config):
18-
reo = compile()
18+
reo = compile_regex()
1919
match(reo)
2020

2121

22-
def compile():
22+
def compile_regex():
2323
return re.compile('^[abetors]*$')
2424

2525

@@ -41,5 +41,6 @@ def words():
4141
'abrasives',
4242
]
4343

44+
4445
if __name__ == '__main__':
4546
main()

0 commit comments

Comments
 (0)