diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f28db74..07e5c01 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,18 +5,16 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - id: check-yaml -- repo: https://github.com/psf/black - rev: 23.10.1 +- repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.1.6 hooks: - - id: black + # Run the linter. + - id: ruff args: - - --safe - - --quiet - files: ^((smarttub|tests)/.+)?[^/]+\.py$ -- repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.3 - hooks: - - id: flake8 + - --fix + # Run the formatter. + - id: ruff-format - repo: local hooks: - id: pytest diff --git a/tests/test_reminder.py b/tests/test_reminder.py index 72de9d1..7590643 100644 --- a/tests/test_reminder.py +++ b/tests/test_reminder.py @@ -17,7 +17,7 @@ def reminders(mock_spa): "remainingDuration": 0, "snoozed": False, "state": "INACTIVE", - } + }, ), SpaReminder( mock_spa, @@ -30,7 +30,7 @@ def reminders(mock_spa): "remainingDuration": 0, "snoozed": False, "state": "INACTIVE", - } + }, ), ] return reminders