Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add future API #32

Open
wants to merge 63 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
03a389b
Initial next API experiments
rafalp Jul 20, 2023
89a0b96
Minimal working object type
rafalp Aug 2, 2023
67702eb
WIP convert type hint to GraphQL type
rafalp Aug 2, 2023
2fa687e
Basic object and scalar type support
rafalp Aug 24, 2023
5bc9fd7
More API experiments
rafalp Sep 8, 2023
32ba360
Field args names and outnames
rafalp Sep 11, 2023
372428f
Validate graphql name matches schema contents
rafalp Sep 11, 2023
2bb1f4d
WIP deferred fields types
rafalp Sep 12, 2023
64ecdda
Deferred type tests
rafalp Sep 12, 2023
83046b4
Enums support
rafalp Sep 20, 2023
82e5f47
New GraphQLEnum
rafalp Sep 22, 2023
1081c29
Tweak default graphql name from class name for enums
rafalp Sep 22, 2023
dfd2f51
More improvements to ObjectType, initial InputType
rafalp Oct 13, 2023
35a91cc
Input types
rafalp Oct 23, 2023
c59e62d
Recurrent types, ID type
rafalp Oct 24, 2023
ffbbde3
Inputs and objects defaults
rafalp Nov 3, 2023
81d64c0
Input and object instance types
rafalp Nov 6, 2023
2a19874
Update tests
rafalp Nov 9, 2023
07e5c91
GraphQL object types
rafalp Nov 21, 2023
26437c0
WIP finalize make_executable_schema
rafalp Jan 8, 2024
e2e9052
Mute too many returns warning
rafalp Jan 8, 2024
1c0fe66
Fix line too long error
rafalp Jan 8, 2024
77be440
next.make_executable_schema
rafalp Jan 16, 2024
d94a4f4
Barebones Union type implementation
rafalp Mar 29, 2024
b71762b
added-uniont-type-validation
DamianCzajkowski Apr 9, 2024
51d8225
wrap-attributes-names-in-__attrname__-in-error-messages
DamianCzajkowski Apr 9, 2024
2fc3948
updated-error-message
DamianCzajkowski Apr 9, 2024
6b65316
Fix tests suite
rafalp Apr 23, 2024
826bbc5
Base implementation of interface with standarization methods from obj…
DamianCzajkowski Apr 15, 2024
6df9763
Inherit from GraphQLObject in the Interface type
DamianCzajkowski Apr 16, 2024
638fe7b
Small fixes in typing
DamianCzajkowski Apr 16, 2024
be15b43
Add more tests to the interface type
DamianCzajkowski Apr 16, 2024
b58ac05
Small refactor on interface type
DamianCzajkowski Apr 16, 2024
4a442f7
Add __abstract__ attribute to the interface type
DamianCzajkowski Apr 17, 2024
5b16e12
added subscription model
DamianCzajkowski Jul 26, 2024
7cc8a54
fixed-pylint-issues
DamianCzajkowski Aug 12, 2024
ea01834
Fix all mypy issues, Fix all pylint issue, Refactor code
DamianCzajkowski Aug 16, 2024
f50a23c
Remove mypy plugin
DamianCzajkowski Aug 19, 2024
3cfe1fa
update-interface-model
DamianCzajkowski Aug 19, 2024
ca685ed
run black
DamianCzajkowski Aug 19, 2024
b0cc747
fix-UnionTypes-for-python-3.8-3.9
DamianCzajkowski Aug 19, 2024
39327a8
bump-python-to-3.12
DamianCzajkowski Aug 19, 2024
f4767f6
black reformat
DamianCzajkowski Aug 19, 2024
05cd2d9
add-compatibility-layer
DamianCzajkowski Aug 8, 2024
89a8002
adjust code to newer changes
DamianCzajkowski Aug 19, 2024
d95f2e0
restructure folder layout to make it easier to deploy
DamianCzajkowski Aug 22, 2024
bd939b7
fix v1 tests
DamianCzajkowski Aug 22, 2024
a2031e8
fix args descriptions
DamianCzajkowski Aug 22, 2024
c878df9
Added more tests
DamianCzajkowski Aug 25, 2024
c8b141b
add documentation
DamianCzajkowski Aug 30, 2024
de7b336
fix for 3.9
DamianCzajkowski Aug 30, 2024
257f0ed
fix staticmethods
DamianCzajkowski Aug 30, 2024
ba76514
ignore mypy error
DamianCzajkowski Aug 30, 2024
e566ecd
fix pylint and mypy on tests
DamianCzajkowski Sep 2, 2024
8253bcd
fix code for python 3.9
DamianCzajkowski Sep 2, 2024
0ed1284
disable pylint error
DamianCzajkowski Sep 2, 2024
907b38c
introduce ruff
DamianCzajkowski Sep 5, 2024
33bdb2a
add github page deployment
DamianCzajkowski Sep 5, 2024
4c922de
fix test workflow
DamianCzajkowski Sep 5, 2024
f41eb63
fix ruff in workflow
DamianCzajkowski Sep 5, 2024
151a733
remove hatch from tests workflow
DamianCzajkowski Sep 5, 2024
92d44a9
fix circular import
DamianCzajkowski Sep 5, 2024
8374a61
change version to dev
DamianCzajkowski Sep 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 27 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy documentation

on:
push:
branches:
- main

jobs:
docs-publish:
name: publish documentation
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml

- name: Install Hatch
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc

- name: Build documentation
run: hatch run mkdocs gh-deploy --force
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
- name: Install pypa/build
run: >-
python -m
Expand Down
45 changes: 26 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,35 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ariadne in it's readme states 3.7+, should this follow? Even if you are dropping 3.8 here it should be loudly stated in the release notes.

Copy link
Contributor Author

@rafalp rafalp Aug 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ariadne GraphQL Modules never supported 3.7 due to difference in bound methods handling in Python itself that landed in py3.8.

Nevermind. That change happened in Py 3.7 minor release. And we've had two different lists of supported versions, one in pyproject.toml and other in setup.py. One going as far as Py 3.6 and other for Py 3.7. I think its safe to drop 3.7 and 3.8 both here and in other Ariadne libs, but make it first item in release notes.


steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Pytest
run: |
pytest
- name: Linters
run: |
pylint ariadne_graphql_modules tests
mypy ariadne_graphql_modules --ignore-missing-imports
black --check .
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4

with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test,lint]

- name: Run Ruff
run: ruff check .

- name: Run Black
run: black --check .

- name: Run MyPy
run: mypy ariadne_graphql_modules --ignore-missing-imports

- name: Run Pylint
run: pylint ariadne_graphql_modules tests

- name: Run Pytest
run: pytest
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ignore=snapshots
load-plugins=pylint.extensions.bad_builtin, pylint.extensions.mccabe

[MESSAGES CONTROL]
disable=C0103, C0111, C0209, C0412, I0011, R0101, R0801, R0901, R0902, R0903, R0912, R0913, R0914, R0915, R1260, W0231, W0621, W0703
disable=C0103, C0111, C0209, C0412, I0011, R0101, R0801, R0901, R0902, R0903, R0911, R0912, R0913, R0914, R0915, R1260, W0231, W0621, W0703

[SIMILARITIES]
ignore-imports=yes
179 changes: 0 additions & 179 deletions MOVING.md

This file was deleted.

Loading
Loading