File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,16 @@ repos:
16
16
rev : 3.8.4
17
17
hooks :
18
18
- id : flake8
19
+ - repo : https://github.com/PyCQA/isort
20
+ rev : 5.6.4
21
+ hooks :
22
+ - id : isort
19
23
- repo : local
20
24
hooks :
21
25
- id : pylint
22
26
name : pylint
23
27
entry : pylint
24
- exclude : ^(tests/)|^(docs/)
28
+ exclude : ^(tests/)|^(docs/)|^(sample/)
25
29
language : system
26
30
types : [python]
27
31
- repo : https://github.com/pre-commit/mirrors-mypy
Original file line number Diff line number Diff line change
1
+ from schemas import get_users_query_params_schema , user_schema
2
+
1
3
from pylambdarest import route
2
- from schemas import (
3
- user_schema ,
4
- get_users_query_params_schema
5
- )
6
4
7
5
8
6
@route ()
@@ -13,10 +11,7 @@ def hello():
13
11
@route ()
14
12
def get_user (user_id ):
15
13
# request db data for user <user_id> here
16
- user = {
17
- "userId" : user_id ,
18
- "name" : "John Doe"
19
- }
14
+ user = {"userId" : user_id , "name" : "John Doe" }
20
15
21
16
return 200 , user
22
17
Original file line number Diff line number Diff line change 1
1
import json
2
+
2
3
import pytest
3
4
4
5
from pylambdarest import route
You can’t perform that action at this time.
0 commit comments