Skip to content

Commit d6450d9

Browse files
feat: update codegen scripts
1 parent ce086e6 commit d6450d9

8 files changed

Lines changed: 13368 additions & 48 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
activate-environment: true
2727

2828
- name: Install Dependencies
29-
run: uv sync --extra dev --locked
29+
run: uv sync --group test --locked
3030

3131
- name: Lint Check (Ruff)
3232
run: uv run --no-sync ruff check .

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
activate-environment: true
2727

2828
- name: Install Dependencies
29-
run: uv sync --extra dev --locked
29+
run: uv sync --group test --locked
3030

3131
- name: Run Tests
3232
run: uv run --no-sync pytest

pyproject.toml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ dependencies = [
1414
"requests-oauthlib>=2.0.0",
1515
]
1616

17-
[project.optional-dependencies]
18-
dev = [
19-
"ariadne-codegen>=0.17.0",
20-
"ruff>=0.14.14",
21-
"pytest>=8.4.2",
22-
"pytest-asyncio>=0.24.0",
23-
"ipykernel>=7.1.0",
17+
[dependency-groups]
18+
codegen = [
19+
"ariadne-codegen>=0.17.2",
20+
]
21+
test = [
22+
"ipykernel>=7.2.0",
23+
"pytest>=9.0.2",
24+
"pytest-asyncio>=1.3.0",
25+
"ruff>=0.15.1",
2426
]
2527

2628
[build-system]
@@ -40,12 +42,18 @@ remove-unused-variables = true
4042
ignore-init-module-imports = true
4143

4244
[tool.ariadne-codegen]
43-
remote_schema_url = "https://app.playerdata.co.uk/api/graphql"
45+
schema_path = "schema.graphql"
4446
target_package_name = "playerdatapy"
4547
enable_custom_operations = true
4648
client_file_name = "gqlclient"
4749
client_class_name = "GraphqlClient"
48-
remote_schema_headers = {"Authorization" = "$AUTH_TOKEN"}
4950

5051
[tool.ruff.lint]
5152
ignore = ["F405", "F403"]
53+
54+
# Ariadne Codegen doesn't produce ruff lint compliant code :(
55+
exclude = [
56+
"playerdatapy/custom_queries.py",
57+
"playerdatapy/custom_mutations.py",
58+
"playerdatapy/custom_fields.py",
59+
]

0 commit comments

Comments
 (0)