File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1414from dataclasses import dataclass
1515from enum import Enum
1616
17+ from statemachine .states import States
18+
1719from statemachine import State
1820from statemachine import StateMachine
19- from statemachine .states import States
2021
2122
2223class UserStatus (str , Enum ):
Original file line number Diff line number Diff line change 11import re
22
33import pytest
4+ from statemachine .exceptions import InvalidStateValue
45
56from statemachine import State
67from statemachine import StateMachine
7- from statemachine .exceptions import InvalidStateValue
88
99
1010@pytest .fixture ()
Original file line number Diff line number Diff line change 66from enum import auto
77
88import pytest
9+ from statemachine .exceptions import TransitionNotAllowed
10+ from statemachine .states import States
911
1012from statemachine import State
1113from statemachine import StateMachine
12- from statemachine .exceptions import TransitionNotAllowed
13- from statemachine .states import States
1414
1515logger = logging .getLogger (__name__ )
1616DEBUG = logging .DEBUG
Original file line number Diff line number Diff line change 22from functools import partial
33
44import pytest
5-
65from statemachine .dispatcher import callable_method
76from statemachine .signature import SignatureAdapter
87
Original file line number Diff line number Diff line change 22import logging
33
44import pytest
5-
65from statemachine .spec_parser import operator_mapping
76from statemachine .spec_parser import parse_boolean_expr
87
You can’t perform that action at this time.
0 commit comments