Skip to content

Commit

Permalink
Update ruff version
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Jun 13, 2024
1 parent 2c4ea31 commit f5690d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- run: python -Im pip install --user ruff
# keep in sync with .pre-commit-config.yaml
- run: python -Im pip install --user ruff==0.4.8

- name: Run ruff
working-directory: .
Expand Down
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -13,7 +13,8 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.3.2'
# keep in sync with .github/workflows/ruff.yml
rev: 'v0.4.8'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
8 changes: 3 additions & 5 deletions wagtail_localize/modeladmin/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,9 @@ def test_button_helper_getter(self):
def test_get_templates(self):
def result(action):
return [
"wagtail_localize/modeladmin/wagtail_localize_test/testmodel/translatable_%s.html"
% action,
"wagtail_localize/modeladmin/wagtail_localize_test/translatable_%s.html"
% action,
"wagtail_localize/modeladmin/translatable_%s.html" % action,
f"wagtail_localize/modeladmin/wagtail_localize_test/testmodel/translatable_{action}.html",
f"wagtail_localize/modeladmin/wagtail_localize_test/translatable_{action}.html",
f"wagtail_localize/modeladmin/translatable_{action}.html",
]

self.assertEqual(self.model_admin.get_templates("index"), result("index"))
Expand Down

0 comments on commit f5690d0

Please sign in to comment.