Skip to content

Commit

Permalink
Keep ruff versions in sync in CI/pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed May 21, 2024
1 parent 26b676b commit 895cbef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 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.4

- name: Run ruff
working-directory: ./src
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:

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 @@ -16,8 +16,8 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.2.2'
# keep in sync with .github/workflows/ruff.yml
rev: 'v0.4.4'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 1 addition & 0 deletions src/wagtail_headless_preview/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
This module provides the `headless_preview_settings` object, that is used to access
the settings. It checks for user settings first, with fallback to defaults.
"""

import warnings

from django.conf import settings
Expand Down

0 comments on commit 895cbef

Please sign in to comment.