Commit Graph

1425 Commits

Author SHA1 Message Date
Christian González
4752ec08ab
fix deprecated "Input" class 2018-10-20 11:16:29 +02:00
Syrus Akbary
705cad76b2
Merge pull request #844 from dschaller/make-docs
add root make target for creating html version of docs
2018-10-15 14:46:49 +02:00
Syrus Akbary
8eb23ed802
Merge pull request #843 from dschaller/easier-make-docs
inline doctstring of make targets
2018-10-15 14:46:21 +02:00
Derek Schaller
a4c812f886 add root make target for creating html version of docs 2018-10-13 11:27:57 -07:00
Derek Schaller
3df3754ae6 inline doctstring of make targets 2018-10-13 11:21:07 -07:00
Syrus Akbary
131cbebc88
Merge pull request #832 from danpalmer/patch-6
Add basic type documentation for Relay fields
2018-09-09 20:11:36 +02:00
Dan Palmer
2a3d92682a
Add descriptions to the fields as well 2018-09-09 18:44:01 +01:00
Dan Palmer
b8ecc3929d
Add basic type documentation for Relay fields
This adds documentation in the API for `PageInfo`s and `Edges`.

This is useful to include in Graphene because `PageInfo` is always the same, and Edges always have the same format, so documentation for both can be created automatically.
2018-09-09 18:19:58 +01:00
Syrus Akbary
8d5843dc21 Added BACKERS.md 2018-09-09 18:10:07 +02:00
Syrus Akbary
8d4b9cdc77
Merge pull request #830 from danpalmer/patch-4
Expose documentation for Union types
2018-09-08 20:07:18 +02:00
Dan Palmer
00d370b228
Expose documentation for Union types 2018-09-08 17:20:39 +01:00
Syrus Akbary
e043527d5e
Merge pull request #827 from alxpy/py37
Add Python3.7 to CI
2018-09-04 16:25:32 +02:00
Alex Kuzmenko
325ab0d002 Add Python3.7 to CI 2018-09-04 17:17:28 +03:00
Syrus Akbary
e748c5f048
Update ROADMAP.md 2018-09-04 14:36:17 +02:00
Syrus Akbary
563ef221d4
Merge pull request #824 from graphql-python/feature/async-relay
Abstract thenables (promise, coroutine) out of relay
2018-08-31 20:51:48 +02:00
Syrus Akbary
9512528a77 Fixed async funcs 2018-08-31 20:16:12 +02:00
Syrus Akbary
3d41a500c9 Fixed lint & imports 2018-08-31 20:01:03 +02:00
Syrus Akbary
3e5319cf70 Abstract thenables (promise, coroutine) out of relay Connections and Mutations 2018-08-31 19:53:21 +02:00
Syrus Akbary
5777d85f99 Improved docs for testing 2018-08-31 17:58:51 +02:00
Syrus Akbary
bf3a4a88a4 Added ROADMAP to the Project 2018-08-31 17:49:29 +02:00
Syrus Akbary
c40ce98bb8
Merge pull request #821 from danpalmer/patch-3
Fix grammar in error message
2018-08-30 19:06:06 +02:00
Dan Palmer
baec6249e5
Fix assertion 2018-08-29 18:10:37 +01:00
Dan Palmer
07ec419578
Fix grammar 2018-08-29 17:31:46 +01:00
Syrus Akbary
727e09105f
Merge pull request #819 from adamchainz/deprecated_arguments
Change deprecated execute() arguments to new ones
2018-08-29 13:49:58 +02:00
Adam Johnson
4f2b278e12 black reformat 2018-08-29 13:07:45 +03:00
Adam Johnson
7dd8305bdf Change deprecated execute() arguments to new ones
Changed in https://github.com/graphql-python/graphql-core/pull/185 , the docs here were out of date, as were the tests.
2018-08-29 12:35:44 +03:00
Syrus Akbary
d728b84e48
Merge pull request #726 from picturedots/issue-703
Issue 703 -- support for Decimal type
2018-07-24 09:19:58 -07:00
Mark Chackerian
00cc97875d Merge branch 'master' into issue-703 2018-07-20 10:25:46 -04:00
Syrus Akbary
d28dc68abc Updated requirements to use graphql-core >= 2.1 2018-07-19 14:44:20 -07:00
Syrus Akbary
bfd6fd7c49
Merge pull request #802 from sebdiem/sdr/fix_black_formatting
fix black formatting
2018-07-19 14:38:07 -07:00
Sébastien Diemer
1eae96fd43 fix black formatting 2018-07-19 23:28:26 +02:00
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