File tree Expand file tree Collapse file tree 5 files changed +20
-13
lines changed
django-subscriptions-rxdb/src
django-subscriptions/demo Expand file tree Collapse file tree 5 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 1
1
[flake8]
2
- max-line-length = 89
2
+ max-line-length = 88
3
3
exclude =.venv,.git
4
- ignore = W503
4
+ ignore = W503,E800
5
5
extend-ignore =
6
6
# See https://github.com/PyCQA/pycodestyle/issues/373
7
7
E203,
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ async def get_broadcast():
19
19
if dbinfo .get ("PORT" )
20
20
else dbinfo .get ("HOST" )
21
21
)
22
- dsnstr = f"postgresql://{ dbinfo .get ('USER' )} :{ dbinfo .get ('PASSWORD' )} @{ host } /{ dbinfo .get ('NAME' )} "
22
+ dsnstr = (
23
+ f"postgresql://{ dbinfo .get ('USER' )} :"
24
+ f"{ dbinfo .get ('PASSWORD' )} @{ host } /{ dbinfo .get ('NAME' )} "
25
+ )
23
26
broadcast = Broadcast (dsnstr )
24
27
else :
25
28
broadcast = Broadcast ("memory://" )
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ class Hero(HeroResolver.output_type):
34
34
# updatedAt: Float
35
35
# deleted: Boolean!
36
36
# }
37
- # The client code expects the input type to be called "HeroInput", not "CreateHero", which is the default
38
- # We therefore need to create a new type via the strawberry.input decorator
39
- # class HeroInput(HeroResolver.create_input_type):
37
+ # The client code expects the input type to be called "HeroInput",
38
+ # not "CreateHero", which is the default We therefore need to create a new type
39
+ # via the strawberry.input decorator
40
40
@strawberry .input
41
41
class HeroInput (HeroResolver .create_input_type ):
42
42
pass
@@ -65,11 +65,11 @@ def filterHeroes(
65
65
66
66
@strawberry .type
67
67
class Query :
68
- ## to include the auto-generated methods from strawberry-graphql-django:
69
- ## - hero(id: ID!): Hero!
70
- ## - heros(filters: [String!] = null): [Hero!]!
71
- ## declare the class as
72
- ## class Query(HeroResolver.query()):
68
+ # to include the auto-generated methods from strawberry-graphql-django:
69
+ # - hero(id: ID!): Hero!
70
+ # - heros(filters: [String!] = null): [Hero!]!
71
+ # declare the class as
72
+ # class Query(HeroResolver.query()):
73
73
74
74
# type Query {
75
75
# feedHero(id: String, updatedAt: Float, limit: Int!): [Hero!]!
Original file line number Diff line number Diff line change 66
66
67
67
AUTH_PASSWORD_VALIDATORS = [
68
68
{
69
- "NAME" : "django.contrib.auth.password_validation.UserAttributeSimilarityValidator" ,
69
+ "NAME" : (
70
+ "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
71
+ ),
70
72
},
71
73
{
72
74
"NAME" : "django.contrib.auth.password_validation.MinimumLengthValidator" ,
Original file line number Diff line number Diff line change 86
86
87
87
AUTH_PASSWORD_VALIDATORS = [
88
88
{
89
- "NAME" : "django.contrib.auth.password_validation.UserAttributeSimilarityValidator" ,
89
+ "NAME" : (
90
+ "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
91
+ ),
90
92
},
91
93
{
92
94
"NAME" : "django.contrib.auth.password_validation.MinimumLengthValidator" ,
You can’t perform that action at this time.
0 commit comments