From a8c749174f2407a2751986e025fc1b097cba420c Mon Sep 17 00:00:00 2001 From: st1020 Date: Wed, 6 Dec 2023 09:46:03 +0800 Subject: [PATCH] feat: some bugfix and feature --- deploy/commands/management/commands/load_hook_strategy.py | 1 - pyproject.toml | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/commands/management/commands/load_hook_strategy.py b/deploy/commands/management/commands/load_hook_strategy.py index f1b02de8..f6ed816b 100644 --- a/deploy/commands/management/commands/load_hook_strategy.py +++ b/deploy/commands/management/commands/load_hook_strategy.py @@ -13,7 +13,6 @@ from dongtai_common.utils.validate import save_hook_stratefile_sha1sum from dongtai_conf.settings import BASE_DIR from dongtai_protocol.views.hook_profiles import LANGUAGE_DICT -from tqdm import tqdm class Command(BaseCommand): diff --git a/pyproject.toml b/pyproject.toml index ae0a9afe..97ec46ae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,7 @@ ignore = [ "TRY003", # Avoid specifying long messages outside the exception class "TRY301", # Abstract raise to an inner function "PERF203", # try-except within a loop incurs performance overhead + "RUF001", # String contains ambiguous ] # target version is python 3.9 because Cython not support some python 3.10 feature target-version = "py39" @@ -56,3 +57,6 @@ target-version = "py39" "**/tests.py" = ["T201"] "deploy/*.py" = ["T201"] "dongtai_conf/*.py" = ["T201"] + +[tool.pyright] +ignore = [".venv", "**/urls.py"]