Skip to content

Commit b2cb612

Browse files
committed
use ruff instead of flake8+black
1 parent 0a60f82 commit b2cb612

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- id: check-yaml
8-
- repo: https://github.com/psf/black
9-
rev: 23.10.1
8+
- repo: https://github.com/astral-sh/ruff-pre-commit
9+
# Ruff version.
10+
rev: v0.1.6
1011
hooks:
11-
- id: black
12+
# Run the linter.
13+
- id: ruff
1214
args:
13-
- --safe
14-
- --quiet
15-
files: ^((smarttub|tests)/.+)?[^/]+\.py$
16-
- repo: https://gitlab.com/pycqa/flake8
17-
rev: 3.8.3
18-
hooks:
19-
- id: flake8
15+
- --fix
16+
# Run the formatter.
17+
- id: ruff-format
2018
- repo: local
2119
hooks:
2220
- id: pytest

tests/test_reminder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def reminders(mock_spa):
1717
"remainingDuration": 0,
1818
"snoozed": False,
1919
"state": "INACTIVE",
20-
}
20+
},
2121
),
2222
SpaReminder(
2323
mock_spa,
@@ -30,7 +30,7 @@ def reminders(mock_spa):
3030
"remainingDuration": 0,
3131
"snoozed": False,
3232
"state": "INACTIVE",
33-
}
33+
},
3434
),
3535
]
3636
return reminders

0 commit comments

Comments
 (0)