8000 Minor fixes by jmahmood · Pull Request #21 · jmahmood/CardBrick · GitHub
[go: up one dir, main page]

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
4 changes: 2 additions & 2 deletions .github/workflows/sprint4-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ jobs:

- name: Upload test logs
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: integration-test-logs
path: integration-test-logs.txt
Expand Down Expand Up @@ -331,7 +331,7 @@ jobs:

- name: Upload security reports
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: security-reports
path: "*-report.json"
8 changes: 2 additions & 6 deletions cardbrick-cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
import sys
import logging
import asyncio
import tempfile
import tarfile
import json
from pathlib import Path
from typing import Optional

import click

Expand Down Expand Up @@ -207,7 +203,7 @@ def send_backup(ctx, learner_uuid):
# Run async function
code = asyncio.run(wormhole.send_backup(learner_uuid))

click.echo(f"✓ Backup sent successfully!")
click.echo("✓ Backup sent successfully!")
click.echo(f"Wormhole code: {code}")
click.echo("Share this code with the recipient to download the backup.")

Expand Down Expand Up @@ -237,7 +233,7 @@ def receive_backup(ctx, wormhole_code, uuid):
# Run async function
restored_uuid = asyncio.run(wormhole.receive_backup(wormhole_code, uuid))

click.echo(f"✓ Backup restored successfully!")
click.echo("✓ Backup restored successfully!")
click.echo(f"Learner UUID: {restored_uuid}")
click.echo(f"Data location: {data_dir / 'learners' / restored_uuid}")

Expand Down
2 changes: 0 additions & 2 deletions cardbrick-cli/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Supports various input formats and produces decks compatible with the Rust handheld app.
"""

import csv
import json
import hashlib
import logging
Expand All @@ -16,7 +15,6 @@

import pandas as pd
import markdown
from pydantic import BaseModel, Field

logger = logging.getLogger(__name__)

Expand Down
1 change: 0 additions & 1 deletion cardbrick-cli/wormhole_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Handles sending and receiving backup packages via magic-wormhole
"""

import asyncio
import json
import logging
import shutil
Expand Down
1 change: 0 additions & 1 deletion cardbrick-syncd/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import logging
import os
import secrets
import socket
import time
from pathlib import Path
from typing import Dict, Optional, Set
Expand Down
1 change: 0 additions & 1 deletion cardbrick-syncd/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import os
from pathlib import Path
from typing import Optional
from dataclasses import dataclass

@dataclass
Expand Down
1 change: 0 additions & 1 deletion cardbrick-syncd/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import json
import logging
import time
from pathlib import Path
from typing import Dict, Set, Optional

from cryptography.hazmat.primitives import serialization
Expand Down
5 changes: 1 addition & 4 deletions cardbrick-syncd/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@
"""

import asyncio
import json
import logging
import time
from datetime import datetime, timezone
from pathlib import Path
from typing import Dict, Optional, Any

from fastapi import FastAPI, HTTPException, Request
from fastapi.responses import JSONResponse
from fastapi import FastAPI
from pydantic import BaseModel, Field

try:
Expand Down
1 change: 0 additions & 1 deletion cardbrick-syncd/generate_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import subprocess
import sys
from pathlib import Path
from typing import Optional

import requests

Expand Down
2 changes: 0 additions & 2 deletions cardbrick-syncd/main.py
10BC8
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
import logging
import signal
import sys
from pathlib import Path
from typing import Optional

import uvicorn
from fastapi import FastAPI

try:
# Try relative imports first (when run as part of package)
Expand Down
3 changes: 0 additions & 3 deletions cardbrick-syncd/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@

import asyncio
import logging
import shlex
import shutil
import sqlite3
import time
from dataclasses import dataclass
from pathlib import Path
from typing import List, Optional
Expand Down
1 change: 0 additions & 1 deletion cardbrick-syncd/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import asyncio
import sys
from pathlib import Path

from auth import AuthClient

Expand Down
Loading
Loading
0