From 9355e5fe6c619144af4c800bf2490bbaa6ffe84c Mon Sep 17 00:00:00 2001 From: JasonGrace2282 Date: Tue, 14 May 2024 23:39:02 -0400 Subject: [PATCH] add pre-commit caching --- .github/workflows/ci.yml | 10 +++------- create_debug_users.py | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e9ad596..86647af1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,11 +28,7 @@ jobs: python-version: ${{ matrix.python-version }} cache: pipenv - - name: Install dependencies - run: | - set -e - pip install pipenv - pipenv install --dev --deploy - + # Only use this until pre-commit ci is added + # The README lists that as the recommended solution - name: Check formatting and linting - run: pipenv run pre-commit run --all-files + uses: pre-commit/action@v3.0.1 diff --git a/create_debug_users.py b/create_debug_users.py index 98eb0ce4..5bada2dd 100755 --- a/create_debug_users.py +++ b/create_debug_users.py @@ -31,7 +31,7 @@ # fmt: on for user_info in users: - print("Creating user {}".format(user_info[0])) + print(f"Creating user {user_info[0]}") if user_info[1] is None: user = User.objects.get_or_create(username=user_info[0])[0] else: