浏览代码

Add docstring to fmt command

Getty Ritter 5 年之前
父节点
当前提交
fde685f863
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tasks.py

+ 1 - 0
tasks.py

@@ -25,6 +25,7 @@ def install(c):
 
 @task
 def fmt(c):
+    """Automatically format the source code, committing it if it is safe to do so."""
     status = c.run("git status --porcelain", hide="stdout")
     is_clean = status.stdout.strip() == ""
     c.run("poetry run black $(find . -name '*.py')")