Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: sitescripts/docs/bin/generate_docs.py

Issue 29569566: Noissue - Replace flake8-putty with flake8-per-file-ignores, update to flake8 3 (sitescripts) (Closed)
Patch Set: Created Oct. 8, 2017, 6:02 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # This file is part of Adblock Plus <https://adblockplus.org/>, 3 # This file is part of Adblock Plus <https://adblockplus.org/>,
4 # Copyright (C) 2006-present eyeo GmbH 4 # Copyright (C) 2006-present eyeo GmbH
5 # 5 #
6 # Adblock Plus is free software: you can redistribute it and/or modify 6 # Adblock Plus is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License version 3 as 7 # it under the terms of the GNU General Public License version 3 as
8 # published by the Free Software Foundation. 8 # published by the Free Software Foundation.
9 # 9 #
10 # Adblock Plus is distributed in the hope that it will be useful, 10 # Adblock Plus is distributed in the hope that it will be useful,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 except OSError: 78 except OSError:
79 pass 79 pass
80 80
81 for name, data in projects.iteritems(): 81 for name, data in projects.iteritems():
82 sources_dir = os.path.join(temp_directory, name) 82 sources_dir = os.path.join(temp_directory, name)
83 sync_sources(sources_dir, data['repository']) 83 sync_sources(sources_dir, data['repository'])
84 output_dir = sources_dir.rstrip(os.path.sep) + '.docs' 84 output_dir = sources_dir.rstrip(os.path.sep) + '.docs'
85 run_generation_command(data['command'], sources_dir, output_dir) 85 run_generation_command(data['command'], sources_dir, output_dir)
86 replace_dir(output_dir, data['target_directory']) 86 replace_dir(output_dir, data['target_directory'])
87 87
88
88 if __name__ == '__main__': 89 if __name__ == '__main__':
89 config = get_config() 90 config = get_config()
90 projects = read_projects(config) 91 projects = read_projects(config)
91 generate_docs(projects, config) 92 generate_docs(projects, config)
OLDNEW
« no previous file with comments | « sitescripts/crawler/bin/import_sites.py ('k') | sitescripts/extensions/bin/updateRecommendations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld