From 3f1d8cf75d6a0e96e65141bcabf5fc1ea541e17c Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 22 Jun 2023 23:28:06 +0700 Subject: [PATCH] add .venv --- .gitignore | 1 + deploy.sh | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 14fd5ce..682dd83 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # python testing cache __pycache__ +.venv # django testing db db.sqlite3 diff --git a/deploy.sh b/deploy.sh index bbc27d5..191cbfb 100755 --- a/deploy.sh +++ b/deploy.sh @@ -49,6 +49,7 @@ function sync_test { --exclude ".gitignore" \ --exclude "**/cache" \ --exclude "**/__pycache__/" \ + --exclude ".venv" \ --exclude "db.sqlite3" \ --exclude ".mypy_cache" \ . -e ssh "$host":tubearchivist @@ -87,14 +88,14 @@ function validate { # note: this logic is duplicated in the `./github/workflows/lint_python.yml` config # if you update this file, you should update that as well echo "running black" - black --exclude "migrations/*" --diff --color --check -l 79 "$check_path" + black --force-exclude "migrations/*" --diff --color --check -l 79 "$check_path" echo "running codespell" - codespell --skip="./.git,./package.json,./package-lock.json,./node_modules,./.mypy_cache" "$check_path" + codespell --skip="./.git,./.venv,./package.json,./package-lock.json,./node_modules,./.mypy_cache" "$check_path" echo "running flake8" - flake8 "$check_path" --exclude "migrations" --count --max-complexity=10 \ + flake8 "$check_path" --exclude "migrations,.venv" --count --max-complexity=10 \ --max-line-length=79 --show-source --statistics echo "running isort" - isort --skip "migrations" --check-only --diff --profile black -l 79 "$check_path" + isort --skip "migrations" --skip ".venv" --check-only --diff --profile black -l 79 "$check_path" printf " \n> all validations passed\n" }