Skip to content

Commit

Permalink
Merge pull request #1577 from nationalarchives/renovate/astral-sh-ruf…
Browse files Browse the repository at this point in the history
…f-pre-commit-0.x

chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.6.1
  • Loading branch information
dragon-dxw authored Aug 22, 2024
2 parents 3d15d19 + 0982f6a commit c639bc7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.6.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion judgments/tests/test_breadcrumbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from judgments.tests.factories import JudgmentFactory, User


@pytest.mark.django_db()
@pytest.mark.django_db
class TestBreadcrumbs(TestCase):
client = Client(raise_request_exception=False)

Expand Down
4 changes: 2 additions & 2 deletions judgments/tests/test_unlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from factories import JudgmentFactory


@pytest.mark.django_db()
@pytest.mark.django_db
def test_break_lock_confirm_page():
client = Client()
client.force_login(User.objects.get_or_create(username="testuser")[0])
Expand All @@ -18,7 +18,7 @@ def test_break_lock_confirm_page():
assert response.status_code == 200


@pytest.mark.django_db()
@pytest.mark.django_db
@patch("judgments.views.unlock.get_document_by_uri_or_404")
@patch("judgments.views.unlock.api_client.break_checkout")
@patch("judgments.views.unlock.messages")
Expand Down
8 changes: 4 additions & 4 deletions judgments/tests/utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def test_render_versions(self):


class TestEditorsDict:
@pytest.mark.django_db()
@pytest.mark.django_db
def test_print_name_sorting(self, settings):
settings.EDITORS_GROUP_ID = None

Expand All @@ -251,7 +251,7 @@ def test_print_name_sorting(self, settings):
{"name": "joe_bloggs", "print_name": "joe_bloggs"},
]

@pytest.mark.django_db()
@pytest.mark.django_db
def test_exclude_non_editors(self, settings):
group = Group.objects.create(name="Editors")
settings.EDITORS_GROUP_ID = group.id
Expand All @@ -265,7 +265,7 @@ def test_exclude_non_editors(self, settings):
{"name": "editor", "print_name": "editor"},
]

@pytest.mark.django_db()
@pytest.mark.django_db
def test_exclude_inactive_without_editor_group(self, settings):
settings.EDITORS_GROUP_ID = None

Expand All @@ -286,7 +286,7 @@ def test_exclude_inactive_without_editor_group(self, settings):
{"name": "active_user", "print_name": "active_user"},
]

@pytest.mark.django_db()
@pytest.mark.django_db
def test_exclude_inactive_with_editor_group(self, settings):
group = Group.objects.create(name="Editors")
settings.EDITORS_GROUP_ID = group.id
Expand Down

0 comments on commit c639bc7

Please sign in to comment.