File tree Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
exclude : ' ^($|.*\.bin)'
2
2
repos :
3
- - repo : https://github.com/pre-commit/pre-commit-hooks
4
- rev : v4.5.0
5
- hooks :
6
- - id : trailing-whitespace
7
- - id : end-of-file-fixer
8
3
- repo : local
9
4
hooks :
10
5
- id : rst
17
12
rev : v0.1.14
18
13
hooks :
19
14
- id : ruff
20
- args : [ --fix ]
15
+ args : [" --fix" ]
21
16
- id : ruff-format
22
17
- repo : https://github.com/pre-commit/mirrors-mypy
23
18
rev : v1.8.0
Original file line number Diff line number Diff line change @@ -5,4 +5,9 @@ requires = [
5
5
]
6
6
build-backend = " setuptools.build_meta"
7
7
8
- [tool .ruff ]
8
+ [tool .ruff .lint ]
9
+ extend-select = [" I001" ]
10
+
11
+ [tool .ruff .lint .isort ]
12
+ force-single-line = true
13
+ known-third-party = [" src" ]
Original file line number Diff line number Diff line change
1
+ from pytest_mock .plugin import MockerFixture
2
+ from pytest_mock .plugin import PytestMockWarning
1
3
from pytest_mock .plugin import class_mocker
2
4
from pytest_mock .plugin import mocker
3
- from pytest_mock .plugin import MockerFixture
4
5
from pytest_mock .plugin import module_mocker
5
6
from pytest_mock .plugin import package_mocker
6
7
from pytest_mock .plugin import pytest_addoption
7
8
from pytest_mock .plugin import pytest_configure
8
- from pytest_mock .plugin import PytestMockWarning
9
9
from pytest_mock .plugin import session_mocker
10
10
11
11
MockFixture = MockerFixture # backward-compatibility only (#204)
Original file line number Diff line number Diff line change 7
7
import warnings
8
8
from typing import Any
9
9
from typing import Callable
10
- from typing import cast
11
10
from typing import Dict
12
11
from typing import Generator
13
12
from typing import Iterable
14
13
from typing import List
15
14
from typing import Mapping
16
15
from typing import Optional
17
- from typing import overload
18
16
from typing import Tuple
19
17
from typing import Type
20
18
from typing import TypeVar
21
19
from typing import Union
20
+ from typing import cast
21
+ from typing import overload
22
22
23
23
import pytest
24
24
Original file line number Diff line number Diff line change 12
12
from unittest .mock import MagicMock
13
13
14
14
import pytest
15
-
16
15
from pytest_mock import MockerFixture
17
16
from pytest_mock import PytestMockWarning
18
17
You can’t perform that action at this time.
0 commit comments