From 51470cc77384e6f036b5eaa993936c21910c91cd Mon Sep 17 00:00:00 2001 From: T-256 Date: Sat, 13 Apr 2024 15:35:25 +0330 Subject: [PATCH] correctly include `scripts` --- pyproject.toml | 1 - scripts/check | 2 +- scripts/lint | 2 +- scripts/unasync.py | 5 ++++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index dbce8579c..d65e3f071 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,7 +101,6 @@ omit = [ ] include = [ "httpcore/*", - "scripts/*", "tests/*", ] diff --git a/scripts/check b/scripts/check index cfc909184..511f4f6ce 100755 --- a/scripts/check +++ b/scripts/check @@ -4,7 +4,7 @@ export PREFIX="" if [ -d 'venv' ] ; then export PREFIX="venv/bin/" fi -export SOURCE_FILES="httpcore tests" +export SOURCE_FILES="httpcore scripts tests" set -x diff --git a/scripts/lint b/scripts/lint index e40524f52..a57414b33 100755 --- a/scripts/lint +++ b/scripts/lint @@ -4,7 +4,7 @@ export PREFIX="" if [ -d 'venv' ] ; then export PREFIX="venv/bin/" fi -export SOURCE_FILES="httpcore tests" +export SOURCE_FILES="httpcore scripts tests" set -x diff --git a/scripts/unasync.py b/scripts/unasync.py index a312e515b..1ed8ece46 100644 --- a/scripts/unasync.py +++ b/scripts/unasync.py @@ -5,7 +5,10 @@ from pprint import pprint SUBS = [ - ('from .._backends.auto import AutoBackend', 'from .._backends.sync import SyncBackend'), + ( + "from .._backends.auto import AutoBackend", + "from .._backends.sync import SyncBackend", + ), ("import trio as concurrency", "from tests import concurrency"), ("AsyncIterator", "Iterator"), ("Async([A-Z][A-Za-z0-9_]*)", r"\2"),