Skip to content

Refactor/01 typing gate and tooling#52

Merged
Datata1 merged 2 commits into
mainfrom
refactor/01-typing-gate-and-tooling
Jul 10, 2026
Merged

Refactor/01 typing gate and tooling#52
Datata1 merged 2 commits into
mainfrom
refactor/01-typing-gate-and-tooling

Conversation

@Datata1

@Datata1 Datata1 commented Jul 10, 2026

Copy link
Copy Markdown
Owner

No description provided.

Datata1 added 2 commits July 10, 2026 12:29
… deps

Implements plans/refactor/01-typing-gate-and-tooling.md:

- Add ty (pinned 0.0.58) as a blocking type-check gate in CI, pre-commit,
  and 'make typecheck', with a per-path ratchet in [tool.ty.src] exclude;
  each exclusion is owned by a refactor ticket that removes it
- Broaden ruff to F,E,W,I,UP,B,SIM,RUF; drop E721/F841 ignores; remove
  stale src/codesphere_sdk excludes; fix all resulting violations
  (pyupgrade modernizations, import sorting, PEP 695 type aliases,
  implicit-Optional fixes, exception chaining)
- Fix coverage config: source was nonexistent packages [api,handler,tasks],
  now src/codesphere; CI uses --cov from config instead of --cov=.
- Remove unused runtime deps: aiohttp, aiohttp-retry, urllib3,
  python-dateutil, typing-extensions (verified zero imports)
- Relax requires-python from >=3.12.9 to >=3.12
- Trigger CI on pyproject.toml/ruff.toml/uv.lock changes
@Datata1 Datata1 self-assigned this Jul 10, 2026
@github-actions

Copy link
Copy Markdown

Coverage

Pytest Coverage Report
FileStmtsMissBranchBrPartCoverMissing
__init__.py9000100% 
client.py22000100% 
config.py9000100% 
exceptions.py9435382356%25–26, 30, 40–42, 53->58, 54->55, 55, 73->74, 74, 85–87, 101–104, 106–107, 148–151, 158–160, 196->197, 197–199, 204->205, 205, 206->207, 207, 210->211, 211, 214, 215->216, 216, 217->218, 218–219, 222
http_client.py54610288%41->exit, 46->exit, 79–80, 82–83, 88–89
utils.py2716181531%12->13, 13–14, 27–33, 35–36, 41–44, 46
core
   __init__.py4000100% 
   base.py34000100% 
   handler.py911330486%23->28, 118–120, 124->125, 125–130, 136–137, 140–141
   operations.py17000100% 
resources
   __init__.py0000100% 
resources/metadata
   __init__.py3000100% 
   operations.py6000100% 
   resources.py18000100% 
   schemas.py28000100% 
resources/team
   __init__.py5000100% 
   operations.py6000100% 
   resources.py16000100% 
   schemas.py30000100% 
resources/team/domain
   __init__.py0000100% 
   manager.py29000100% 
   operations.py10000100% 
   resources.py3040087%44, 47–49
   schemas.py34000100% 
resources/team/usage
   __init__.py3000100% 
   manager.py4928293%104->107, 107, 165->168, 168
   operations.py4000100% 
   schemas.py8615141372%70->71, 71, 87–88, 91, 99–102, 119–120, 123, 131–134
resources/workspace
   __init__.py5000100% 
   operations.py11000100% 
   resources.py2224285%21->22, 22, 29->30, 30
   schemas.py104166680%101–102, 104–110, 116–117, 119, 145–146, 165–166
resources/workspace/envVars
   __init__.py3000100% 
   models.py31212486%35->37, 37–38, 40->exit
   operations.py6000100% 
   schemas.py4000100% 
resources/workspace/git
   __init__.py3000100% 
   models.py20040100% 
   operations.py7000100% 
   schema.py4000100% 
resources/workspace/landscape
   __init__.py3000100% 
   models.py100736889%29->30, 30, 124->127, 130->133, 154->155, 155–156, 158->153, 161->162, 162, 166–168
   operations.py10000100% 
   resources.py0000100% 
   schemas.py2972910489%120–121, 124, 129–130, 133–134, 137, 142–144, 147–148, 151, 258, 265–266, 341–343, 345–347, 349–350, 465–466, 473–474
resources/workspace/logs
   __init__.py3000100% 
   models.py15384605236%41–42, 48, 50–52, 54, 57–58, 61, 64–65, 67–70, 72–73, 76–77, 79–80, 82–84, 86–87, 89–93, 95–96, 98–100, 102–107, 120–121, 211–213, 222–224, 233–235, 245–254, 264–273, 283–292
   operations.py5000100% 
   schemas.py19000100% 
TOTAL152823125013579% 

Test Execution Summary

Tests Skipped Failures Errors Time
253 0 💤 0 ❌ 0 🔥 2.720s ⏱️

@github-actions

Copy link
Copy Markdown

🛡️ Bandit Security Scan Results

✅ No security issues found by Bandit.

@github-actions

Copy link
Copy Markdown

Integration Test Results

63 tests    0 ✅  12s ⏱️
 1 suites   0 💤
 1 files    24 ❌  39 🔥

For more details on these failures and errors, see this check.

Results for commit 6f08ec7.

@Datata1 Datata1 merged commit 28b64e0 into main Jul 10, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant