Skip to content

Commit

Permalink
add pre-commit caching
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed May 15, 2024
1 parent 32f7d3d commit 9355e5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion create_debug_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9355e5f

Please sign in to comment.