Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:
run: uv sync --locked --only-group lint

- name: Run Ruff linter
# examples/ is excluded, matching the pre-commit ruff hook
run: uv run --no-sync ruff check src/ tests/ parity/
run: uv run --no-sync ruff check src/ tests/ examples/ parity/

- name: Run Ruff formatter check
run: uv run --no-sync ruff format --check src/ tests/ examples/ parity/
Expand Down
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ repos:
name: ruff check
entry: uv run ruff check --fix --force-exclude
language: system
exclude: ^examples/
types: [python]
require_serial: true
- id: ruff-format
Expand Down
2 changes: 1 addition & 1 deletion examples/Async/calc_stats_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import asyncio

from swgoh_comlink import SwgohComlinkAsync, StatCalcAsync, GameDataBuilderAsync
from swgoh_comlink import StatCalcAsync


async def main():
Expand Down
1 change: 0 additions & 1 deletion examples/Async/concurrent_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from swgoh_comlink import SwgohComlinkAsync


# Example ally codes to fetch concurrently
ALLY_CODES = [
314927874,
Expand Down
1 change: 0 additions & 1 deletion examples/Async/get_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import asyncio
from datetime import datetime, timezone
from typing import Union

from swgoh_comlink import SwgohComlinkAsync

Expand Down
1 change: 0 additions & 1 deletion examples/Async/get_player_arena_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

# Place module imports below this line
from swgoh_comlink import SwgohComlinkAsync
from pprint import pprint as pp


async def main():
Expand Down
2 changes: 0 additions & 2 deletions examples/Async/streaming_guild_roster_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

import argparse
import asyncio
import statistics
import time

from swgoh_comlink import SwgohComlinkAsync
Expand Down Expand Up @@ -225,7 +224,6 @@ async def main():
print(f"Fetching {total} member profiles (max {args.retries} retries each)...\n")

# Step 3: Fetch all members concurrently using TaskGroup
fetch_times: list[float] = []
results: list[dict | None] = []
overall_start = time.perf_counter()

Expand Down
2 changes: 1 addition & 1 deletion examples/Sync/calc_stats_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
4. GameDataBuilder — fetches data dynamically from a running Comlink service
"""

from swgoh_comlink import SwgohComlink, StatCalc, GameDataBuilder
from swgoh_comlink import StatCalc

# --- Example 1: Basic unit (no skills or mods) ---
basic_unit = {
Expand Down
2 changes: 1 addition & 1 deletion examples/Sync/get_player_arena_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"""

# Place module imports below this line

from swgoh_comlink import SwgohComlink
from pprint import pprint as pp

# create an instance of a SwgohComlink object
comlink = SwgohComlink()
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ ignore = [
# Existing violations to address incrementally — do not add new suppressions
"src/swgoh_comlink/__init__.py" = ["UP036"] # outdated version block (sys.exit check)
"src/swgoh_comlink/helpers/*.py" = ["B007", "B904", "SIM102"] # existing patterns to clean up
# Examples assign results to named variables to show what each call returns
"examples/**" = ["F841"]

[tool.ruff.lint.isort]
known-first-party = ["swgoh_comlink"]
Expand Down
Loading