prefect-github 0.2.2__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. {prefect-github-0.2.2/prefect_github.egg-info → prefect_github-0.2.3}/PKG-INFO +21 -34
  2. {prefect-github-0.2.2 → prefect_github-0.2.3}/README.md +7 -16
  3. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/__init__.py +1 -1
  4. prefect_github-0.2.3/prefect_github/_version.py +16 -0
  5. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/credentials.py +2 -1
  6. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/organization.py +131 -27
  7. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/repository.py +2 -1
  8. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/repository_owner.py +11 -3
  9. prefect_github-0.2.3/prefect_github/schemas/graphql_schema.json +140145 -0
  10. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/user.py +191 -39
  11. {prefect-github-0.2.2 → prefect_github-0.2.3/prefect_github.egg-info}/PKG-INFO +21 -34
  12. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github.egg-info/SOURCES.txt +5 -8
  13. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github.egg-info/requires.txt +7 -9
  14. prefect_github-0.2.3/pyproject.toml +74 -0
  15. prefect_github-0.2.3/setup.cfg +4 -0
  16. prefect_github-0.2.3/tests/conftest.py +23 -0
  17. {prefect-github-0.2.2 → prefect_github-0.2.3}/tests/test_credentials.py +1 -2
  18. {prefect-github-0.2.2 → prefect_github-0.2.3}/tests/test_repository.py +3 -4
  19. {prefect-github-0.2.2 → prefect_github-0.2.3}/tests/test_utils.py +0 -1
  20. prefect_github-0.2.3/tests/test_version.py +9 -0
  21. prefect-github-0.2.2/LICENSE +0 -202
  22. prefect-github-0.2.2/MANIFEST.in +0 -15
  23. prefect-github-0.2.2/prefect_github/_version.py +0 -21
  24. prefect-github-0.2.2/requirements-dev.txt +0 -16
  25. prefect-github-0.2.2/requirements.txt +0 -2
  26. prefect-github-0.2.2/setup.cfg +0 -43
  27. prefect-github-0.2.2/setup.py +0 -48
  28. prefect-github-0.2.2/versioneer.py +0 -2163
  29. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/mutation/add_comment.json +0 -0
  30. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/mutation/add_pull_request_review.json +0 -0
  31. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/mutation/add_reaction.json +0 -0
  32. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/mutation/add_star.json +0 -0
  33. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/mutation/close_issue.json +0 -0
  34. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/mutation/close_pull_request.json +0 -0
  35. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/mutation/create_issue.json +0 -0
  36. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/mutation/create_pull_request.json +0 -0
  37. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/mutation/remove_reaction.json +0 -0
  38. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/mutation/remove_star.json +0 -0
  39. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/mutation/request_reviews.json +0 -0
  40. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/query/organization.json +0 -0
  41. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/query/repository.json +0 -0
  42. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/query/repository_owner.json +0 -0
  43. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/query/user.json +0 -0
  44. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/configs/query/viewer.json +0 -0
  45. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/exceptions.py +0 -0
  46. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/graphql.py +1 -1
  47. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/mutations.py +1 -1
  48. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/schemas/__init__.py +0 -0
  49. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/schemas/graphql_schema.py +0 -0
  50. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/utils.py +0 -0
  51. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github/viewer.py +1 -1
  52. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github.egg-info/dependency_links.txt +0 -0
  53. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github.egg-info/entry_points.txt +0 -0
  54. {prefect-github-0.2.2 → prefect_github-0.2.3}/prefect_github.egg-info/top_level.txt +0 -0
  55. {prefect-github-0.2.2 → prefect_github-0.2.3}/tests/test_block_standards.py +2 -2
  56. {prefect-github-0.2.2 → prefect_github-0.2.3}/tests/test_graphql.py +3 -3
@@ -1,61 +1,48 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prefect-github
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Prefect integrations interacting with GitHub
5
- Home-page: https://github.com/PrefectHQ/prefect-github
6
- Author: Prefect Technologies Inc.
7
- Author-email: help@prefect.io
5
+ Author-email: "Prefect Technologies, Inc." <help@prefect.io>
8
6
  License: Apache License 2.0
7
+ Project-URL: Homepage, https://github.com/PrefectHQ/prefect/tree/main/src/integrations/prefect-github
9
8
  Keywords: prefect
10
9
  Classifier: Natural Language :: English
11
10
  Classifier: Intended Audience :: Developers
12
11
  Classifier: Intended Audience :: System Administrators
13
12
  Classifier: License :: OSI Approved :: Apache Software License
14
13
  Classifier: Programming Language :: Python :: 3 :: Only
15
- Classifier: Programming Language :: Python :: 3.7
16
14
  Classifier: Programming Language :: Python :: 3.8
17
15
  Classifier: Programming Language :: Python :: 3.9
18
16
  Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
19
  Classifier: Topic :: Software Development :: Libraries
20
- Requires-Python: >=3.7
20
+ Requires-Python: >=3.8
21
21
  Description-Content-Type: text/markdown
22
- License-File: LICENSE
23
22
  Requires-Dist: sgqlc>=15.0
24
23
  Requires-Dist: prefect>=2.13.5
25
24
  Provides-Extra: dev
26
- Requires-Dist: pytest; extra == "dev"
27
- Requires-Dist: black; extra == "dev"
28
- Requires-Dist: flake8; extra == "dev"
29
- Requires-Dist: mypy; extra == "dev"
30
- Requires-Dist: mkdocs; extra == "dev"
25
+ Requires-Dist: coverage; extra == "dev"
26
+ Requires-Dist: interrogate; extra == "dev"
27
+ Requires-Dist: mkdocs-gen-files; extra == "dev"
31
28
  Requires-Dist: mkdocs-material; extra == "dev"
29
+ Requires-Dist: mkdocs; extra == "dev"
32
30
  Requires-Dist: mkdocstrings[python]; extra == "dev"
33
- Requires-Dist: isort; extra == "dev"
31
+ Requires-Dist: mock; python_version < "3.8" and extra == "dev"
32
+ Requires-Dist: mypy; extra == "dev"
34
33
  Requires-Dist: pillow; extra == "dev"
35
34
  Requires-Dist: pre-commit; extra == "dev"
36
35
  Requires-Dist: pytest-asyncio; extra == "dev"
37
- Requires-Dist: mock; python_version < "3.8" and extra == "dev"
38
- Requires-Dist: mkdocs-gen-files; extra == "dev"
39
- Requires-Dist: interrogate; extra == "dev"
40
- Requires-Dist: coverage; extra == "dev"
41
- Requires-Dist: pillow; extra == "dev"
36
+ Requires-Dist: pytest; extra == "dev"
37
+ Requires-Dist: pytest-xdist; extra == "dev"
42
38
 
43
39
  # prefect-github
44
40
 
45
41
  <p align="center">
46
42
  <a href="https://pypi.python.org/pypi/prefect-github/" alt="PyPI version">
47
- <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-github?color=0052FF&labelColor=090422"></a>
48
- <a href="https://github.com/PrefectHQ/prefect-github/" alt="Stars">
49
- <img src="https://img.shields.io/github/stars/PrefectHQ/prefect-github?color=0052FF&labelColor=090422" /></a>
43
+ <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-github?color=26272B&labelColor=090422"></a>
50
44
  <a href="https://pepy.tech/badge/prefect-github/" alt="Downloads">
51
- <img src="https://img.shields.io/pypi/dm/prefect-github?color=0052FF&labelColor=090422" /></a>
52
- <a href="https://github.com/PrefectHQ/prefect-github/pulse" alt="Activity">
53
- <img src="https://img.shields.io/github/commit-activity/m/PrefectHQ/prefect-github?color=0052FF&labelColor=090422" /></a>
54
- <br>
55
- <a href="https://prefect-community.slack.com" alt="Slack">
56
- <img src="https://img.shields.io/badge/slack-join_community-red.svg?color=0052FF&labelColor=090422&logo=slack" /></a>
57
- <a href="https://discourse.prefect.io/" alt="Discourse">
58
- <img src="https://img.shields.io/badge/discourse-browse_forum-red.svg?color=0052FF&labelColor=090422&logo=discourse" /></a>
45
+ <img src="https://img.shields.io/pypi/dm/prefect-github?color=26272B&labelColor=090422" /></a>
59
46
  </p>
60
47
 
61
48
  ## Welcome!
@@ -68,11 +55,11 @@ The tasks within this collection were created by a code generator using the GitH
68
55
 
69
56
  ### Python setup
70
57
 
71
- Requires an installation of Python 3.7+.
58
+ Requires an installation of Python 3.8 or newer.
72
59
 
73
60
  We recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.
74
61
 
75
- These tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the [Prefect documentation](https://orion-docs.prefect.io/).
62
+ These tasks are designed to work with Prefect 2. For more information about how to use Prefect, please refer to the [Prefect documentation](https://docs.prefect.io/).
76
63
 
77
64
  ### Installation
78
65
 
@@ -82,13 +69,13 @@ Install `prefect-github` with `pip`:
82
69
  pip install prefect-github
83
70
  ```
84
71
 
85
- Then, register to [view the block](https://orion-docs.prefect.io/ui/blocks/) on Prefect Cloud:
72
+ Then, register to [view the block](https://docs.prefect.io/ui/blocks/) on Prefect Cloud:
86
73
 
87
74
  ```bash
88
75
  prefect block register -m prefect_github
89
76
  ```
90
77
 
91
- Note, to use the `load` method on Blocks, you must already have a block document [saved through code](https://orion-docs.prefect.io/concepts/blocks/#saving-blocks) or [saved through the UI](https://orion-docs.prefect.io/ui/blocks/).
78
+ Note, to use the `load` method on Blocks, you must already have a block document [saved through code](https://orion-docs.prefect.io/concepts/blocks/#saving-blocks) or saved through the UI.
92
79
 
93
80
  ### Write and run a flow
94
81
 
@@ -122,7 +109,7 @@ github_add_star_flow()
122
109
 
123
110
  If you encounter any bugs while using `prefect-github`, feel free to open an issue in the [prefect-github](https://github.com/PrefectHQ/prefect-github) repository.
124
111
 
125
- If you have any questions or issues while using `prefect-github`, you can find help in either the [Prefect Discourse forum](https://discourse.prefect.io/) or the [Prefect Slack community](https://prefect.io/slack).
112
+ If you have any questions or issues while using `prefect-github`, you can find help in the [Prefect Slack community](https://prefect.io/slack).
126
113
 
127
114
  Feel free to ⭐️ or watch [`prefect-github`](https://github.com/PrefectHQ/prefect-github) for updates too!
128
115
 
@@ -2,18 +2,9 @@
2
2
 
3
3
  <p align="center">
4
4
  <a href="https://pypi.python.org/pypi/prefect-github/" alt="PyPI version">
5
- <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-github?color=0052FF&labelColor=090422"></a>
6
- <a href="https://github.com/PrefectHQ/prefect-github/" alt="Stars">
7
- <img src="https://img.shields.io/github/stars/PrefectHQ/prefect-github?color=0052FF&labelColor=090422" /></a>
5
+ <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-github?color=26272B&labelColor=090422"></a>
8
6
  <a href="https://pepy.tech/badge/prefect-github/" alt="Downloads">
9
- <img src="https://img.shields.io/pypi/dm/prefect-github?color=0052FF&labelColor=090422" /></a>
10
- <a href="https://github.com/PrefectHQ/prefect-github/pulse" alt="Activity">
11
- <img src="https://img.shields.io/github/commit-activity/m/PrefectHQ/prefect-github?color=0052FF&labelColor=090422" /></a>
12
- <br>
13
- <a href="https://prefect-community.slack.com" alt="Slack">
14
- <img src="https://img.shields.io/badge/slack-join_community-red.svg?color=0052FF&labelColor=090422&logo=slack" /></a>
15
- <a href="https://discourse.prefect.io/" alt="Discourse">
16
- <img src="https://img.shields.io/badge/discourse-browse_forum-red.svg?color=0052FF&labelColor=090422&logo=discourse" /></a>
7
+ <img src="https://img.shields.io/pypi/dm/prefect-github?color=26272B&labelColor=090422" /></a>
17
8
  </p>
18
9
 
19
10
  ## Welcome!
@@ -26,11 +17,11 @@ The tasks within this collection were created by a code generator using the GitH
26
17
 
27
18
  ### Python setup
28
19
 
29
- Requires an installation of Python 3.7+.
20
+ Requires an installation of Python 3.8 or newer.
30
21
 
31
22
  We recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.
32
23
 
33
- These tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the [Prefect documentation](https://orion-docs.prefect.io/).
24
+ These tasks are designed to work with Prefect 2. For more information about how to use Prefect, please refer to the [Prefect documentation](https://docs.prefect.io/).
34
25
 
35
26
  ### Installation
36
27
 
@@ -40,13 +31,13 @@ Install `prefect-github` with `pip`:
40
31
  pip install prefect-github
41
32
  ```
42
33
 
43
- Then, register to [view the block](https://orion-docs.prefect.io/ui/blocks/) on Prefect Cloud:
34
+ Then, register to [view the block](https://docs.prefect.io/ui/blocks/) on Prefect Cloud:
44
35
 
45
36
  ```bash
46
37
  prefect block register -m prefect_github
47
38
  ```
48
39
 
49
- Note, to use the `load` method on Blocks, you must already have a block document [saved through code](https://orion-docs.prefect.io/concepts/blocks/#saving-blocks) or [saved through the UI](https://orion-docs.prefect.io/ui/blocks/).
40
+ Note, to use the `load` method on Blocks, you must already have a block document [saved through code](https://orion-docs.prefect.io/concepts/blocks/#saving-blocks) or saved through the UI.
50
41
 
51
42
  ### Write and run a flow
52
43
 
@@ -80,7 +71,7 @@ github_add_star_flow()
80
71
 
81
72
  If you encounter any bugs while using `prefect-github`, feel free to open an issue in the [prefect-github](https://github.com/PrefectHQ/prefect-github) repository.
82
73
 
83
- If you have any questions or issues while using `prefect-github`, you can find help in either the [Prefect Discourse forum](https://discourse.prefect.io/) or the [Prefect Slack community](https://prefect.io/slack).
74
+ If you have any questions or issues while using `prefect-github`, you can find help in the [Prefect Slack community](https://prefect.io/slack).
84
75
 
85
76
  Feel free to ⭐️ or watch [`prefect-github`](https://github.com/PrefectHQ/prefect-github) for updates too!
86
77
 
@@ -2,4 +2,4 @@ from . import _version
2
2
  from .credentials import GitHubCredentials # noqa
3
3
  from .repository import GitHubRepository # noqa
4
4
 
5
- __version__ = _version.get_versions()["version"]
5
+ __version__ = _version.__version__
@@ -0,0 +1,16 @@
1
+ # file generated by setuptools_scm
2
+ # don't change, don't track in version control
3
+ TYPE_CHECKING = False
4
+ if TYPE_CHECKING:
5
+ from typing import Tuple, Union
6
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
7
+ else:
8
+ VERSION_TUPLE = object
9
+
10
+ version: str
11
+ __version__: str
12
+ __version_tuple__: VERSION_TUPLE
13
+ version_tuple: VERSION_TUPLE
14
+
15
+ __version__ = version = '0.2.3'
16
+ __version_tuple__ = version_tuple = (0, 2, 3)
@@ -2,9 +2,10 @@
2
2
 
3
3
  import warnings
4
4
 
5
- from prefect.blocks.abstract import CredentialsBlock
6
5
  from pydantic import VERSION as PYDANTIC_VERSION
7
6
 
7
+ from prefect.blocks.abstract import CredentialsBlock
8
+
8
9
  if PYDANTIC_VERSION.startswith("2."):
9
10
  from pydantic.v1 import Field, SecretStr
10
11
  else:
@@ -10,9 +10,9 @@ GitHub query_organization* tasks
10
10
  from pathlib import Path
11
11
  from typing import Any, Dict, Iterable
12
12
 
13
- from prefect import task
14
13
  from sgqlc.operation import Operation
15
14
 
15
+ from prefect import task
16
16
  from prefect_github import GitHubCredentials
17
17
  from prefect_github.graphql import _execute_graphql_op, _subset_return_fields
18
18
  from prefect_github.schemas import graphql_schema
@@ -79,7 +79,11 @@ async def query_organization_team( # noqa
79
79
  A dict of the returned fields.
80
80
  """
81
81
  op = Operation(graphql_schema.Query)
82
- op_selection = op.organization(**strip_kwargs(login=login,)).team(
82
+ op_selection = op.organization(
83
+ **strip_kwargs(
84
+ login=login,
85
+ )
86
+ ).team(
83
87
  **strip_kwargs(
84
88
  slug=slug,
85
89
  )
@@ -143,7 +147,11 @@ async def query_organization_teams( # noqa
143
147
  A dict of the returned fields.
144
148
  """
145
149
  op = Operation(graphql_schema.Query)
146
- op_selection = op.organization(**strip_kwargs(login=login,)).teams(
150
+ op_selection = op.organization(
151
+ **strip_kwargs(
152
+ login=login,
153
+ )
154
+ ).teams(
147
155
  **strip_kwargs(
148
156
  user_logins=user_logins,
149
157
  privacy=privacy,
@@ -192,7 +200,11 @@ async def query_organization_project( # noqa
192
200
  A dict of the returned fields.
193
201
  """
194
202
  op = Operation(graphql_schema.Query)
195
- op_selection = op.organization(**strip_kwargs(login=login,)).project(
203
+ op_selection = op.organization(
204
+ **strip_kwargs(
205
+ login=login,
206
+ )
207
+ ).project(
196
208
  **strip_kwargs(
197
209
  number=number,
198
210
  )
@@ -248,7 +260,11 @@ async def query_organization_domains( # noqa
248
260
  A dict of the returned fields.
249
261
  """
250
262
  op = Operation(graphql_schema.Query)
251
- op_selection = op.organization(**strip_kwargs(login=login,)).domains(
263
+ op_selection = op.organization(
264
+ **strip_kwargs(
265
+ login=login,
266
+ )
267
+ ).domains(
252
268
  **strip_kwargs(
253
269
  after=after,
254
270
  before=before,
@@ -312,7 +328,11 @@ async def query_organization_packages( # noqa
312
328
  A dict of the returned fields.
313
329
  """
314
330
  op = Operation(graphql_schema.Query)
315
- op_selection = op.organization(**strip_kwargs(login=login,)).packages(
331
+ op_selection = op.organization(
332
+ **strip_kwargs(
333
+ login=login,
334
+ )
335
+ ).packages(
316
336
  **strip_kwargs(
317
337
  after=after,
318
338
  before=before,
@@ -374,7 +394,11 @@ async def query_organization_projects( # noqa
374
394
  A dict of the returned fields.
375
395
  """
376
396
  op = Operation(graphql_schema.Query)
377
- op_selection = op.organization(**strip_kwargs(login=login,)).projects(
397
+ op_selection = op.organization(
398
+ **strip_kwargs(
399
+ login=login,
400
+ )
401
+ ).projects(
378
402
  **strip_kwargs(
379
403
  states=states,
380
404
  order_by=order_by,
@@ -434,7 +458,11 @@ async def query_organization_sponsors( # noqa
434
458
  A dict of the returned fields.
435
459
  """
436
460
  op = Operation(graphql_schema.Query)
437
- op_selection = op.organization(**strip_kwargs(login=login,)).sponsors(
461
+ op_selection = op.organization(
462
+ **strip_kwargs(
463
+ login=login,
464
+ )
465
+ ).sponsors(
438
466
  **strip_kwargs(
439
467
  after=after,
440
468
  before=before,
@@ -493,7 +521,11 @@ async def query_organization_audit_log( # noqa
493
521
  A dict of the returned fields.
494
522
  """
495
523
  op = Operation(graphql_schema.Query)
496
- op_selection = op.organization(**strip_kwargs(login=login,)).audit_log(
524
+ op_selection = op.organization(
525
+ **strip_kwargs(
526
+ login=login,
527
+ )
528
+ ).audit_log(
497
529
  **strip_kwargs(
498
530
  after=after,
499
531
  before=before,
@@ -537,7 +569,11 @@ async def query_organization_project_v2( # noqa
537
569
  A dict of the returned fields.
538
570
  """
539
571
  op = Operation(graphql_schema.Query)
540
- op_selection = op.organization(**strip_kwargs(login=login,)).project_v2(
572
+ op_selection = op.organization(
573
+ **strip_kwargs(
574
+ login=login,
575
+ )
576
+ ).project_v2(
541
577
  **strip_kwargs(
542
578
  number=number,
543
579
  )
@@ -588,7 +624,11 @@ async def query_organization_projects_v2( # noqa
588
624
  A dict of the returned fields.
589
625
  """
590
626
  op = Operation(graphql_schema.Query)
591
- op_selection = op.organization(**strip_kwargs(login=login,)).projects_v2(
627
+ op_selection = op.organization(
628
+ **strip_kwargs(
629
+ login=login,
630
+ )
631
+ ).projects_v2(
592
632
  **strip_kwargs(
593
633
  query=query,
594
634
  order_by=order_by,
@@ -635,7 +675,11 @@ async def query_organization_repository( # noqa
635
675
  A dict of the returned fields.
636
676
  """
637
677
  op = Operation(graphql_schema.Query)
638
- op_selection = op.organization(**strip_kwargs(login=login,)).repository(
678
+ op_selection = op.organization(
679
+ **strip_kwargs(
680
+ login=login,
681
+ )
682
+ ).repository(
639
683
  **strip_kwargs(
640
684
  name=name,
641
685
  follow_renames=follow_renames,
@@ -686,7 +730,11 @@ async def query_organization_sponsoring( # noqa
686
730
  A dict of the returned fields.
687
731
  """
688
732
  op = Operation(graphql_schema.Query)
689
- op_selection = op.organization(**strip_kwargs(login=login,)).sponsoring(
733
+ op_selection = op.organization(
734
+ **strip_kwargs(
735
+ login=login,
736
+ )
737
+ ).sponsoring(
690
738
  **strip_kwargs(
691
739
  after=after,
692
740
  before=before,
@@ -729,7 +777,11 @@ async def query_organization_project_next( # noqa
729
777
  A dict of the returned fields.
730
778
  """
731
779
  op = Operation(graphql_schema.Query)
732
- op_selection = op.organization(**strip_kwargs(login=login,)).project_next(
780
+ op_selection = op.organization(
781
+ **strip_kwargs(
782
+ login=login,
783
+ )
784
+ ).project_next(
733
785
  **strip_kwargs(
734
786
  number=number,
735
787
  )
@@ -778,7 +830,11 @@ async def query_organization_pinned_items( # noqa
778
830
  A dict of the returned fields.
779
831
  """
780
832
  op = Operation(graphql_schema.Query)
781
- op_selection = op.organization(**strip_kwargs(login=login,)).pinned_items(
833
+ op_selection = op.organization(
834
+ **strip_kwargs(
835
+ login=login,
836
+ )
837
+ ).pinned_items(
782
838
  **strip_kwargs(
783
839
  types=types,
784
840
  after=after,
@@ -833,7 +889,11 @@ async def query_organization_projects_next( # noqa
833
889
  A dict of the returned fields.
834
890
  """
835
891
  op = Operation(graphql_schema.Query)
836
- op_selection = op.organization(**strip_kwargs(login=login,)).projects_next(
892
+ op_selection = op.organization(
893
+ **strip_kwargs(
894
+ login=login,
895
+ )
896
+ ).projects_next(
837
897
  **strip_kwargs(
838
898
  query=query,
839
899
  sort_by=sort_by,
@@ -910,7 +970,11 @@ async def query_organization_repositories( # noqa
910
970
  A dict of the returned fields.
911
971
  """
912
972
  op = Operation(graphql_schema.Query)
913
- op_selection = op.organization(**strip_kwargs(login=login,)).repositories(
973
+ op_selection = op.organization(
974
+ **strip_kwargs(
975
+ login=login,
976
+ )
977
+ ).repositories(
914
978
  **strip_kwargs(
915
979
  privacy=privacy,
916
980
  order_by=order_by,
@@ -1007,7 +1071,11 @@ async def query_organization_pinnable_items( # noqa
1007
1071
  A dict of the returned fields.
1008
1072
  """
1009
1073
  op = Operation(graphql_schema.Query)
1010
- op_selection = op.organization(**strip_kwargs(login=login,)).pinnable_items(
1074
+ op_selection = op.organization(
1075
+ **strip_kwargs(
1076
+ login=login,
1077
+ )
1078
+ ).pinnable_items(
1011
1079
  **strip_kwargs(
1012
1080
  types=types,
1013
1081
  after=after,
@@ -1058,7 +1126,11 @@ async def query_organization_recent_projects( # noqa
1058
1126
  A dict of the returned fields.
1059
1127
  """
1060
1128
  op = Operation(graphql_schema.Query)
1061
- op_selection = op.organization(**strip_kwargs(login=login,)).recent_projects(
1129
+ op_selection = op.organization(
1130
+ **strip_kwargs(
1131
+ login=login,
1132
+ )
1133
+ ).recent_projects(
1062
1134
  **strip_kwargs(
1063
1135
  after=after,
1064
1136
  before=before,
@@ -1115,7 +1187,11 @@ async def query_organization_member_statuses( # noqa
1115
1187
  A dict of the returned fields.
1116
1188
  """
1117
1189
  op = Operation(graphql_schema.Query)
1118
- op_selection = op.organization(**strip_kwargs(login=login,)).member_statuses(
1190
+ op_selection = op.organization(
1191
+ **strip_kwargs(
1192
+ login=login,
1193
+ )
1194
+ ).member_statuses(
1119
1195
  **strip_kwargs(
1120
1196
  after=after,
1121
1197
  before=before,
@@ -1166,7 +1242,11 @@ async def query_organization_pending_members( # noqa
1166
1242
  A dict of the returned fields.
1167
1243
  """
1168
1244
  op = Operation(graphql_schema.Query)
1169
- op_selection = op.organization(**strip_kwargs(login=login,)).pending_members(
1245
+ op_selection = op.organization(
1246
+ **strip_kwargs(
1247
+ login=login,
1248
+ )
1249
+ ).pending_members(
1170
1250
  **strip_kwargs(
1171
1251
  after=after,
1172
1252
  before=before,
@@ -1253,7 +1333,11 @@ async def query_organization_members_with_role( # noqa
1253
1333
  A dict of the returned fields.
1254
1334
  """
1255
1335
  op = Operation(graphql_schema.Query)
1256
- op_selection = op.organization(**strip_kwargs(login=login,)).members_with_role(
1336
+ op_selection = op.organization(
1337
+ **strip_kwargs(
1338
+ login=login,
1339
+ )
1340
+ ).members_with_role(
1257
1341
  **strip_kwargs(
1258
1342
  after=after,
1259
1343
  before=before,
@@ -1313,7 +1397,11 @@ async def query_organization_enterprise_owners( # noqa
1313
1397
  A dict of the returned fields.
1314
1398
  """
1315
1399
  op = Operation(graphql_schema.Query)
1316
- op_selection = op.organization(**strip_kwargs(login=login,)).enterprise_owners(
1400
+ op_selection = op.organization(
1401
+ **strip_kwargs(
1402
+ login=login,
1403
+ )
1404
+ ).enterprise_owners(
1317
1405
  **strip_kwargs(
1318
1406
  query=query,
1319
1407
  organization_role=organization_role,
@@ -1379,7 +1467,11 @@ async def query_organization_sponsors_activities( # noqa
1379
1467
  A dict of the returned fields.
1380
1468
  """
1381
1469
  op = Operation(graphql_schema.Query)
1382
- op_selection = op.organization(**strip_kwargs(login=login,)).sponsors_activities(
1470
+ op_selection = op.organization(
1471
+ **strip_kwargs(
1472
+ login=login,
1473
+ )
1474
+ ).sponsors_activities(
1383
1475
  **strip_kwargs(
1384
1476
  actions=actions,
1385
1477
  after=after,
@@ -1476,7 +1568,11 @@ async def query_organization_ip_allow_list_entries( # noqa
1476
1568
  A dict of the returned fields.
1477
1569
  """
1478
1570
  op = Operation(graphql_schema.Query)
1479
- op_selection = op.organization(**strip_kwargs(login=login,)).ip_allow_list_entries(
1571
+ op_selection = op.organization(
1572
+ **strip_kwargs(
1573
+ login=login,
1574
+ )
1575
+ ).ip_allow_list_entries(
1480
1576
  **strip_kwargs(
1481
1577
  after=after,
1482
1578
  before=before,
@@ -1539,7 +1635,11 @@ async def query_organization_repository_migrations( # noqa
1539
1635
  A dict of the returned fields.
1540
1636
  """
1541
1637
  op = Operation(graphql_schema.Query)
1542
- op_selection = op.organization(**strip_kwargs(login=login,)).repository_migrations(
1638
+ op_selection = op.organization(
1639
+ **strip_kwargs(
1640
+ login=login,
1641
+ )
1642
+ ).repository_migrations(
1543
1643
  **strip_kwargs(
1544
1644
  after=after,
1545
1645
  before=before,
@@ -1644,7 +1744,11 @@ async def query_organization_repository_discussions( # noqa
1644
1744
  A dict of the returned fields.
1645
1745
  """
1646
1746
  op = Operation(graphql_schema.Query)
1647
- op_selection = op.organization(**strip_kwargs(login=login,)).repository_discussions(
1747
+ op_selection = op.organization(
1748
+ **strip_kwargs(
1749
+ login=login,
1750
+ )
1751
+ ).repository_discussions(
1648
1752
  **strip_kwargs(
1649
1753
  after=after,
1650
1754
  before=before,
@@ -16,11 +16,12 @@ from tempfile import TemporaryDirectory
16
16
  from typing import Any, Dict, Iterable, Optional, Tuple, Union
17
17
  from urllib.parse import urlparse, urlunparse
18
18
 
19
+ from pydantic import VERSION as PYDANTIC_VERSION
20
+
19
21
  from prefect import task
20
22
  from prefect.filesystems import ReadableDeploymentStorage
21
23
  from prefect.utilities.asyncutils import sync_compatible
22
24
  from prefect.utilities.processutils import run_process
23
- from pydantic import VERSION as PYDANTIC_VERSION
24
25
 
25
26
  if PYDANTIC_VERSION.startswith("2."):
26
27
  from pydantic.v1 import Field, validator
@@ -10,9 +10,9 @@ GitHub query_repository_owner* tasks
10
10
  from pathlib import Path
11
11
  from typing import Any, Dict, Iterable
12
12
 
13
- from prefect import task
14
13
  from sgqlc.operation import Operation
15
14
 
15
+ from prefect import task
16
16
  from prefect_github import GitHubCredentials
17
17
  from prefect_github.graphql import _execute_graphql_op, _subset_return_fields
18
18
  from prefect_github.schemas import graphql_schema
@@ -82,7 +82,11 @@ async def query_repository_owner_repository( # noqa
82
82
  A dict of the returned fields.
83
83
  """
84
84
  op = Operation(graphql_schema.Query)
85
- op_selection = op.repository_owner(**strip_kwargs(login=login,)).repository(
85
+ op_selection = op.repository_owner(
86
+ **strip_kwargs(
87
+ login=login,
88
+ )
89
+ ).repository(
86
90
  **strip_kwargs(
87
91
  name=name,
88
92
  follow_renames=follow_renames,
@@ -155,7 +159,11 @@ async def query_repository_owner_repositories( # noqa
155
159
  A dict of the returned fields.
156
160
  """
157
161
  op = Operation(graphql_schema.Query)
158
- op_selection = op.repository_owner(**strip_kwargs(login=login,)).repositories(
162
+ op_selection = op.repository_owner(
163
+ **strip_kwargs(
164
+ login=login,
165
+ )
166
+ ).repositories(
159
167
  **strip_kwargs(
160
168
  privacy=privacy,
161
169
  order_by=order_by,