Coding style.
- Increase maximum line length from 80 to 100.
This commit is contained in:
parent
75a028272d
commit
71b9da128b
15 changed files with 404 additions and 696 deletions
|
|
@ -50,8 +50,7 @@ def run_in_container(container, command):
|
|||
def build_ubuntu():
|
||||
cmd("sudo debootstrap --components=main,restricted,universe,multiverse "
|
||||
"impish ubuntu.part http://au.archive.ubuntu.com/ubuntu/")
|
||||
run_in_container("ubuntu.part",
|
||||
"ln -sf /lib/systemd/resolv.conf /etc/resolv.conf")
|
||||
run_in_container("ubuntu.part", "ln -sf /lib/systemd/resolv.conf /etc/resolv.conf")
|
||||
os.rename("ubuntu.part", "ubuntu")
|
||||
|
||||
|
||||
|
|
@ -106,6 +105,5 @@ def main(work_path):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
work_path = (tempfile.mkdtemp(prefix="make-appimage-")
|
||||
if len(sys.argv) == 1 else sys.argv[1])
|
||||
work_path = tempfile.mkdtemp(prefix="make-appimage-") if len(sys.argv) == 1 else sys.argv[1]
|
||||
main(work_path)
|
||||
|
|
|
|||
|
|
@ -6,9 +6,8 @@ import eris.tools as tools
|
|||
|
||||
|
||||
def main():
|
||||
all_tools = ([(["*"], tools.generic_tools() +
|
||||
[tools.git_diff, tools.git_blame, tools.git_log])] +
|
||||
tools.TOOLS_FOR_EXTENSIONS)
|
||||
git_tools = [tools.git_diff, tools.git_blame, tools.git_log]
|
||||
all_tools = [(["*"], tools.generic_tools() + git_tools)] + tools.TOOLS_FOR_EXTENSIONS
|
||||
tool_set = set()
|
||||
extension_set = set()
|
||||
for extensions, tools_ in all_tools:
|
||||
|
|
@ -51,9 +50,8 @@ Eris maintains an up-to-date set of reports for every file in a codebase.
|
|||
File types({len(extension_set)-1}) | Tools({len(tool_set)})
|
||||
----------:| -----""")
|
||||
for extensions, tools_ in all_tools:
|
||||
print("%s | %s" % (
|
||||
" ".join("." + extension for extension in extensions),
|
||||
" • ".join(f"[{tool.__name__}]({tool.url})" for tool in tools_)))
|
||||
print("%s | %s" % (" ".join("." + extension for extension in extensions),
|
||||
" • ".join(f"[{tool.__name__}]({tool.url})" for tool in tools_)))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue