Skip to content

Commit f8cbdf2

Browse files
JacobCoffeeclaudesourcery-ai[bot]
authored
fix: configure ty type checker and resolve CI issues (#122)
Co-authored-by: Claude <[email protected]> Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 9c79b16 commit f8cbdf2

File tree

19 files changed

+183
-675
lines changed

19 files changed

+183
-675
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# worktree?
2+
worktrees/
3+
14
# dependencies
25
/.pnp
36
.pnp.js

.pre-commit-config.yaml

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -53,50 +53,10 @@ repos:
5353
- id: ensure-dunder-all
5454
exclude: "test*|examples*|tools"
5555
args: ["--use-tuple"]
56-
# - repo: https://github.com/pre-commit/mirrors-mypy
57-
# rev: "v1.6.1"
58-
# hooks:
59-
# - id: mypy
60-
# exclude: "tools|docs"
61-
# additional_dependencies:
62-
# [
63-
# annotated_types,
64-
# httpx,
65-
# httpx_sse,
66-
# hypothesis,
67-
# jsbeautifier,
68-
# pydantic>=2,
69-
# pydantic-extra-types,
70-
# pytest,
71-
# pytest-lazy-fixture,
72-
# pytest-mock,
73-
# pytest_docker,
74-
# python-dotenv,
75-
# click,
76-
# rich,
77-
# rich-click,
78-
# structlog,
79-
# uvicorn,
80-
# prometheus_client,
81-
# litestar,
82-
# polyfactory,
83-
# discord-py,
84-
# ]
85-
- repo: local
56+
- repo: https://github.com/JacobCoffee/ty-pre-commit
57+
rev: v0.0.1
8658
hooks:
8759
- id: ty
88-
name: ty
89-
entry: bash -c "uv run --no-sync ty check services/bot/src packages/byte-common/src"
90-
language: system
91-
types: [python]
92-
pass_filenames: false
93-
- id: pre-push-ci
94-
name: Run CI checks before push
95-
entry: make ci
96-
language: system
97-
stages: [pre-push]
98-
pass_filenames: false
99-
verbose: true
10060
- repo: https://github.com/sphinx-contrib/sphinx-lint
10161
rev: v1.0.2
10262
hooks:

.prekignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Exclude worktrees from prek workspace discovery
2+
# This prevents prek from running hooks on all worktrees
3+
worktrees/

AGENT5_REPORT.md

Lines changed: 0 additions & 209 deletions
This file was deleted.

0 commit comments

Comments
 (0)