From 612dbb6993c8a548744f29a4d15d6b31325357c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 14 May 2024 18:53:03 +0200 Subject: Tue May 14 06:53:03 PM CEST 2024 --- .bin/python-chad | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 .bin/python-chad (limited to '.bin/python-chad') 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:-.}" -- cgit v1.2.3