Skip to content

Commit

Permalink
Fix URL and upgrade flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
grigorescu committed Nov 23, 2024
1 parent e5aa95f commit 1600d69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Apply unapplied migrations
env:
DATABASE_URL: postgres://scram:@postgres:5432/test_scram
DATABASE_URL: postgres://scram:@localhost:5432/test_scram
run: |
python manage.py makemigrations --noinput || true
UNAPPLIED_MIGRATIONS=$(python manage.py showmigrations --plan | grep '\[ \]' | awk '{print $2}')
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Check for duplicate migrations
env:
DATABASE_URL: postgres://scram:@postgres:5432/test_scram
DATABASE_URL: postgres://scram:@localhost:5432/test_scram
run: |
if python manage.py makemigrations --dry-run | grep "No changes detected"; then
echo "No duplicate migrations detected."
Expand All @@ -74,5 +74,5 @@ jobs:
- name: Run Pytest
env:
DATABASE_URL: postgres://scram:@postgres:5432/test_scram
DATABASE_URL: postgres://scram:@localhost:5432/test_scram
run: pytest
5 changes: 3 additions & 2 deletions requirements/code_quality.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
flake8==7.1.0
flake8-docstrings==1.7.0 # https://github.com/pycqa/flake8-docstrings
flake8-isort==4.1.1 # https://github.com/gforcada/flake8-isort
black==22.3.0 # https://github.com/psf/black
flake8-isort==6.1.1 # https://github.com/gforcada/flake8-isort
black==24.10.0 # https://github.com/psf/black
pylint-django==2.5.3 # https://github.com/PyCQA/pylint-django

0 comments on commit 1600d69

Please sign in to comment.