From 55181722f97f73fa42ab505b628586171f3fcf80 Mon Sep 17 00:00:00 2001 From: T-256 <132141463+T-256@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:05:02 +0330 Subject: [PATCH] Move `unasync.py` to `scripts` (#891) Co-authored-by: Tester Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com> --- scripts/check | 2 +- scripts/lint | 2 +- scripts/unasync | 8 -------- unasync.py => scripts/unasync.py | 0 4 files changed, 2 insertions(+), 10 deletions(-) delete mode 100755 scripts/unasync rename unasync.py => scripts/unasync.py (100%) mode change 100755 => 100644 diff --git a/scripts/check b/scripts/check index 02ed35c0..ff0d5327 100755 --- a/scripts/check +++ b/scripts/check @@ -11,4 +11,4 @@ set -x ${PREFIX}ruff check --show-source $SOURCE_FILES ${PREFIX}ruff format $SOURCE_FILES --diff ${PREFIX}mypy $SOURCE_FILES -scripts/unasync --check +${PREFIX}python scripts/unasync.py --check diff --git a/scripts/lint b/scripts/lint index ec38987d..e40524f5 100755 --- a/scripts/lint +++ b/scripts/lint @@ -13,4 +13,4 @@ ${PREFIX}ruff format $SOURCE_FILES # Run unasync last because its `--check` mode is not aware of code formatters. # (This means sync code isn't prettified, and that's mostly okay.) -scripts/unasync +${PREFIX}python scripts/unasync.py diff --git a/scripts/unasync b/scripts/unasync deleted file mode 100755 index 1e638205..00000000 --- a/scripts/unasync +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -e - -export PREFIX="" -if [ -d 'venv' ] ; then - export PREFIX="venv/bin/" -fi - -${PREFIX}python unasync.py ${@} diff --git a/unasync.py b/scripts/unasync.py old mode 100755 new mode 100644 similarity index 100% rename from unasync.py rename to scripts/unasync.py