Mark Chackerian
8ca7b855ac
more flake8 fixes
2018-07-16 18:31:32 -04:00
Mark Chackerian
c076412ba5
automatically generated linting fixes
2018-07-16 18:20:04 -04:00
Mark Chackerian
fc3dbf0963
Merge branch 'master' into issue-703
...
# Conflicts:
# graphene/__init__.py
# graphene/types/__init__.py
2018-07-16 17:50:41 -04:00
Mark Chackerian
0fdc2ca3eb
should fix some import issues with python 2.7
2018-07-16 17:20:49 -04:00
Syrus Akbary
4346832f71
Merge pull request #788 from sebdiem/sdr/subclass_mutations
...
Enable mutations subclassing
2018-07-09 19:06:15 -07:00
Syrus Akbary
319605bfaf
Merge branch 'master' into sdr/subclass_mutations
2018-07-09 18:49:07 -07:00
Syrus Akbary
43aec720a8
Merge pull request #793 from dan98765/add_black_formatter_precommit_hook
...
Add black formatter precommit hook
2018-07-06 17:40:40 -05:00
Daniel Gallagher
142f4a58d8
Run black formatter via pre-commit on all files
2018-07-06 14:03:15 -07:00
Daniel Gallagher
086f9dda99
Run black formatter via pre-commit on all files
2018-07-06 12:09:23 -07:00
Daniel Gallagher
71bcbb8566
Go with base black formatter for now
2018-07-06 12:06:16 -07:00
Daniel Gallagher
bf0d23b584
Add pyproject.toml to configure black formatter
2018-07-06 11:18:24 -07:00
Daniel Gallagher
04782a2818
Add black formatter pre-commit hook and remove isort (since black also sorts imports)
2018-07-06 11:10:41 -07:00
Syrus Akbary
ae7395f9da
Merge pull request #737 from dan98765/pre_commit_runs_as_part_of_continuous_integration
...
Update .travis.yml file to use tox as script for running tests
2018-07-06 12:50:31 -05:00
Sébastien Diemer
181e75c952
Fetch fields from parent classes in mutations
...
The goal of this commit is to be able to subclass mutations like this:
```
class BaseMutation(graphene.Mutation):
class Arguments:
name = graphene.String()
def mutate(self, info, **kwargs):
# do something
class ChildMutation(BaseMutation):
class Arguments(BaseMutation.Arguments):
other_arg = graphene.String()
def mutate(self, info, **kwargs):
# do other things
```
Note:
vars(x).get(key, gettattr(x, key)) is used instead of the
simpler gettatrr(x, key) for python2.7 compat.
Indeed python2 and python3 lead to different results for
class Foo(object):
def bar(self):
pass
getattr(Foo, 'bar')
# python 2.7 : > unbound method bar
# python 3.x : > function Foo.bar
2018-07-02 10:03:39 +02:00
Sébastien Diemer
9f366e93c6
__wip__ add failed test
...
Just to ease review.
TODO: merge with next commit.
2018-07-02 10:03:39 +02:00
Syrus Akbary
2e41db8d95
Merge pull request #786 from jkimbo/deduplicator
...
Deduplicator
2018-07-01 18:10:36 -07:00
Syrus Akbary
fa5f5b0acb
Merge pull request #787 from jkimbo/crunch
...
Crunch response data
2018-07-01 18:09:28 -07:00
Jonathan Kim
1e40eceab3
Convert inputs to OrderedDicts
2018-07-01 21:19:19 +01:00
Jonathan Kim
9ce78e32a5
Remove utf-8 characters
2018-07-01 21:11:00 +01:00
Jonathan Kim
1f541e4467
Add crunch utility
2018-07-01 21:09:12 +01:00
Jonathan Kim
56000394c4
Simplify code
2018-07-01 11:32:16 +01:00
Jonathan Kim
cbcaac66d0
Add deduplicator utility
2018-07-01 11:29:45 +01:00
Syrus Akbary
1b746e6460
Merge pull request #779 from benmosher/patch-1
...
docs: mutation 'Output' example (closes #543 )
2018-06-26 10:59:31 -07:00
Ben Mosher
708278e6dc
docs: mutation 'Output' example ( closes #543 )
2018-06-26 07:14:46 -04:00
Syrus Akbary
9efdf4c46e
Merge pull request #771 from jkimbo/update-interface-documentation
...
Update interface documentation
2018-06-18 13:33:59 -07:00
Syrus Akbary
9da46e8c99
Merge pull request #770 from boidolr/master
...
Update documentation
2018-06-18 13:33:34 -07:00
Jonathan Kim
cc54c76a3e
Improve wording
2018-06-17 12:05:34 +01:00
Jonathan Kim
e7ebb86e5a
Re-order type list
2018-06-17 11:25:32 +01:00
Jonathan Kim
a2db7c5dae
Remove an unnecessary field
2018-06-17 11:24:59 +01:00
Jonathan Kim
3f6c3a7a99
Clean up doc and add resolve_type documentation
2018-06-17 11:23:08 +01:00
Jonathan Kim
43e87768d2
Update interface documentation
2018-06-16 15:10:32 +01:00
Raphael Boidol
5c4736e102
Update documentation
...
* resolver function arguments changed in `objecttypes.rst`
* small typo in `mutations.rst`
2018-06-16 13:11:33 +02:00
Syrus Akbary
c102458808
Merge pull request #768 from graphql-python/v2.1.2-1
...
Update to v2.1.2
2018-06-13 10:34:15 -07:00
Jonathan Kim
81419de5bf
Update to v2.1.2
2018-06-12 21:48:52 +01:00
Dan
33f2b303de
Add python3.6 classifier to setup.py ( #763 )
2018-06-12 21:38:16 +01:00
Dan
b72dfa87a4
Update README Contributing section to encourage use of virtualenv ( #765 )
2018-06-12 21:38:06 +01:00
Daniel Gallagher
400a98de92
Add tox env for running mypy and add that to .travis.yml
2018-06-11 09:12:27 -07:00
Dan
12ee52a13a
Add pyupgrade pre-commit hook and run on all files ( #736 )
2018-06-09 14:01:29 +01:00
Daniel Gallagher
c8fba61a05
Exclude README.md from trailing-whitespace hook
2018-06-08 22:19:26 -07:00
Daniel Gallagher
b5542d4426
Run pre-commit autoupdate
2018-06-08 22:13:45 -07:00
Daniel Gallagher
0f3d786402
Run pre-commit on all files
2018-06-08 22:08:58 -07:00
Daniel Gallagher
87cf3d4b80
Try installing mypy only when python version is 3.6
2018-06-08 22:00:01 -07:00
Daniel Gallagher
1d49df033c
Explicitly run on py27
2018-06-08 21:56:08 -07:00
Daniel Gallagher
dbb72ba06b
Update to match graphql-core
2018-06-08 21:54:24 -07:00
Daniel Gallagher
6116901ab6
Merge branch 'master' of github.com:dan98765/graphene into pre_commit_runs_as_part_of_continuous_integration
2018-06-08 21:52:34 -07:00
Dan
1b3e7f3b96
Add flake8 pre-commit hook and manually edit files to pass flake8 validation ( #746 )
...
Add flake8 pre-commit hook and manually edit files to pass flake8 validation
2018-06-05 21:47:07 +01:00
Syrus Akbary
8bf937d1ff
Merge pull request #754 from femesq/patch-2
...
Fix parameter order for Relay's Root-field
2018-06-01 18:16:42 -07:00
Syrus Akbary
8802ab3c28
Merge pull request #752 from jlowin/input-meta
...
Don't overwrite fields on InputObject - closes #720
2018-06-01 18:15:43 -07:00
Felipe Mesquita
2fbd2c1cb6
Fix parameter order for Relay's Root-field
2018-06-01 17:15:34 -03:00
Jeremiah Lowin
00ccc2056b
Don't overwrite fields on InputObject - closes #720
2018-05-31 21:52:35 -04:00