Skip to content

Commit affcf67

Browse files
committed
chore: sync pre-commit ruff rev with lockfile (v0.15.0)
The pre-commit hook was using ruff v0.8.1 while the lockfile had v0.15.0, causing import sorting differences between local and CI.
1 parent 95ac619 commit affcf67

6 files changed

Lines changed: 6 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
exclude: docs/auto_examples
1010
- repo: https://github.com/charliermarsh/ruff-pre-commit
1111
# Ruff version.
12-
rev: v0.8.1
12+
rev: v0.15.0
1313
hooks:
1414
# Run the linter.
1515
- id: ruff

tests/examples/user_machine.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
from dataclasses import dataclass
1515
from enum import Enum
1616

17+
from statemachine.states import States
18+
1719
from statemachine import State
1820
from statemachine import StateMachine
19-
from statemachine.states import States
2021

2122

2223
class UserStatus(str, Enum):

tests/test_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import re
22

33
import pytest
4+
from statemachine.exceptions import InvalidStateValue
45

56
from statemachine import State
67
from statemachine import StateMachine
7-
from statemachine.exceptions import InvalidStateValue
88

99

1010
@pytest.fixture()

tests/test_copy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
from enum import auto
77

88
import pytest
9+
from statemachine.exceptions import TransitionNotAllowed
10+
from statemachine.states import States
911

1012
from statemachine import State
1113
from statemachine import StateMachine
12-
from statemachine.exceptions import TransitionNotAllowed
13-
from statemachine.states import States
1414

1515
logger = logging.getLogger(__name__)
1616
DEBUG = logging.DEBUG

tests/test_signature.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from functools import partial
33

44
import pytest
5-
65
from statemachine.dispatcher import callable_method
76
from statemachine.signature import SignatureAdapter
87

tests/test_spec_parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import logging
33

44
import pytest
5-
65
from statemachine.spec_parser import operator_mapping
76
from statemachine.spec_parser import parse_boolean_expr
87

0 commit comments

Comments
 (0)