diff --git a/projects/tentacles/src/python/tentacles/workers.py b/projects/tentacles/src/python/tentacles/workers.py index 94cfb82..259c89b 100644 --- a/projects/tentacles/src/python/tentacles/workers.py +++ b/projects/tentacles/src/python/tentacles/workers.py @@ -16,6 +16,8 @@ from time import sleep from typing import Callable from urllib import parse as urlparse +from fastmail import FastMailSMTP +from flask import Flask as App, render_template from octorest import OctoRest as _OR from requests import Response from requests.exceptions import ( @@ -23,10 +25,7 @@ from requests.exceptions import ( HTTPError, Timeout, ) -from flask import Flask as App, current_app, render_template - from tentacles.store import Store -from fastmail import FastMailSMTP class OctoRest(_OR): diff --git a/tools/fmt.sh b/tools/fmt.sh index 49b8592..ad7774d 100755 --- a/tools/fmt.sh +++ b/tools/fmt.sh @@ -2,9 +2,7 @@ set -euox pipefail cd "$(git rev-parse --show-toplevel)" -bazel build //tools/... //projects/reqman - -DIRS=(projects tools) +DIRS=("${@:-projects tools}") function brl() { bin="$1" @@ -20,4 +18,4 @@ for d in "${DIRS[@]}"; do brl tools/unify --quote '"' -ir $(realpath "$d") done -brl projects/reqman clean tools/python/requirements.txt +# brl projects/reqman clean tools/python/requirements.txt