summaryrefslogtreecommitdiffstats
path: root/.bin/python-chad
diff options
context:
space:
mode:
Diffstat (limited to '.bin/python-chad')
-rwxr-xr-x.bin/python-chad15
1 files changed, 15 insertions, 0 deletions
diff --git a/.bin/python-chad b/.bin/python-chad
new file mode 100755
index 0000000..3fc230e
--- /dev/null
+++ b/.bin/python-chad
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+venv_path=$(poetry env info -p || true)
+
+if [ "${?}" -eq 0 ]; then
+ export PATH="${venv_path}/bin:${PATH}"
+fi
+
+set -x
+
+isort "${1:-.}"
+black "${1:-.}"
+flake8 "${1:-.}"
remember that computers suck.