File tree Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,10 @@ per-file-ignores =
106
106
DAR101,
107
107
; Found too many arguments
108
108
WPS211,
109
+ ; Found nested function
110
+ WPS430,
111
+ ; Found too short name
112
+ WPS111,
109
113
110
114
; all init files
111
115
__init__.py:
Original file line number Diff line number Diff line change 41
41
language : system
42
42
pass_filenames : false
43
43
types : [python]
44
- args : [--count, taskiq_pipelines]
44
+ args : [--count, taskiq_pipelines, tests ]
45
45
46
46
- id : mypy
47
47
name : Validate types with MyPy
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def call_next(
111
111
"""
112
112
self .steps .append (
113
113
DumpedStep (
114
- step_type = SequentialStep ._step_name ,
114
+ step_type = SequentialStep ._step_name , # noqa: WPS437
115
115
step_data = SequentialStep .from_task (
116
116
task = task ,
117
117
param_name = param_name ,
@@ -167,7 +167,7 @@ def call_after(
167
167
"""
168
168
self .steps .append (
169
169
DumpedStep (
170
- step_type = SequentialStep ._step_name ,
170
+ step_type = SequentialStep ._step_name , # noqa: WPS437
171
171
step_data = SequentialStep .from_task (
172
172
task = task ,
173
173
param_name = EMPTY_PARAM_NAME ,
@@ -236,7 +236,7 @@ def map(
236
236
"""
237
237
self .steps .append (
238
238
DumpedStep (
239
- step_type = MapperStep ._step_name ,
239
+ step_type = MapperStep ._step_name , # noqa: WPS437
240
240
step_data = MapperStep .from_task (
241
241
task = task ,
242
242
param_name = param_name ,
@@ -308,7 +308,7 @@ def filter(
308
308
"""
309
309
self .steps .append (
310
310
DumpedStep (
311
- step_type = FilterStep ._step_name ,
311
+ step_type = FilterStep ._step_name , # noqa: WPS437
312
312
step_data = FilterStep .from_task (
313
313
task = task ,
314
314
param_name = param_name ,
Original file line number Diff line number Diff line change 10
10
11
11
12
12
def parse_step (step_type : str , step_data : str ) -> AbstractStep :
13
- step_cls = AbstractStep ._known_steps .get (step_type )
13
+ step_cls = AbstractStep ._known_steps .get (step_type ) # noqa: WPS437
14
14
if step_cls is None :
15
15
logger .warning (f"Unknown step type: { step_type } " )
16
16
raise ValueError ("Unknown step type." )
Original file line number Diff line number Diff line change 8
8
9
9
@pytest .mark .anyio
10
10
async def test_success () -> None :
11
- """Test stub for CI."""
12
-
11
+ """Tests that sequential step works as expected."""
13
12
broker = InMemoryBroker ().with_middlewares (PipelineMiddleware ())
14
13
15
14
@broker .task
@@ -28,8 +27,7 @@ def double(i: int) -> int:
28
27
29
28
@pytest .mark .anyio
30
29
async def test_mapping_success () -> None :
31
- """Test stub for CI."""
32
-
30
+ """Test that map step works as expected."""
33
31
broker = InMemoryBroker ().with_middlewares (PipelineMiddleware ())
34
32
35
33
@broker .task
You can’t perform that action at this time.
0 commit comments