File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -30,22 +30,24 @@ jobs:
3030 with :
3131 python-version : ' 3.12'
3232
33- - name : Set up uv
34- uses : astral-sh/setup-uv @v4
33+ - name : Cache pip dependencies
34+ uses : actions/cache @v4
3535 with :
36- enable-cache : true
37- cache-dependency-glob : " backend/pyproject.toml"
36+ path : ~/.cache/pip
37+ key : ${{ runner.os }}-pip-${{ hashFiles('backend/pyproject.toml') }}
38+ restore-keys : |
39+ ${{ runner.os }}-pip-
3840
3941 - name : Install dependencies
4042 run : |
41- uv venv
42- uv pip install -e ".[dev]"
43+ python -m pip install --upgrade pip
44+ pip install -e ".[dev]"
4345
4446 - name : Run pylint
4547 id : pylint
4648 run : |
4749 echo "Running pylint..."
48- if .venv/bin/ pylint src > pylint-output.txt 2>&1; then
50+ if pylint src > pylint-output.txt 2>&1; then
4951 echo "PYLINT_PASSED=true" >> $GITHUB_ENV
5052 echo "No pylint errors found!"
5153 else
5961 id : ruff
6062 run : |
6163 echo "Running ruff check..."
62- if .venv/bin/ ruff check . > ruff-output.txt 2>&1; then
64+ if ruff check . > ruff-output.txt 2>&1; then
6365 echo "RUFF_PASSED=true" >> $GITHUB_ENV
6466 echo "No ruff errors found!"
6567 else
7375 id : mypy
7476 run : |
7577 echo "Running mypy..."
76- if .venv/bin/ mypy . > mypy-output.txt 2>&1; then
78+ if mypy . > mypy-output.txt 2>&1; then
7779 echo "MYPY_PASSED=true" >> $GITHUB_ENV
7880 echo "No mypy errors found"
7981 else
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ async def refresh_tokens(
152152
153153 access_token = create_access_token (user .id , user .token_version )
154154
155- raw_refresh , new_hash , expires_at = create_refresh_token (
155+ _ , new_hash , expires_at = create_refresh_token (
156156 user .id , stored_token .family_id
157157 )
158158
You can’t perform that action at this time.
0 commit comments