Skip to content

Commit 6fa0b6a

Browse files
dguidoclaude
andcommitted
fix: correct ty version and remove unsupported --strict flag
- Fix ty version to 0.0.1a16 (current alpha release) - Remove --strict flag which doesn't exist in ty - Update ty commands to explicitly check src directory - Remove strict=true from pyproject.toml ty config ty is still in early alpha, so we're using the latest available version with basic configuration. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f6dee7f commit 6fa0b6a

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

{{cookiecutter.project_slug}}/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
hooks:
1515
- id: ty
1616
name: ty type check
17-
entry: uv run ty check --strict
17+
entry: uv run ty check src
1818
language: system
1919
types: [python]
2020
pass_filenames: false

{{cookiecutter.project_slug}}/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ GitHub Actions run on every push/PR:
166166
167167
1. **Never commit code that violates the quality standards** - refactor instead
168168
2. **All public APIs need Google-style docstrings**
169-
3. **Type hints are mandatory** - use `ty check --strict`
169+
3. **Type hints are mandatory** - use `ty check`
170170
4. **Tests can live beside code** - prefer colocated tests for better maintainability
171171
172172
## Project-Specific Instructions

{{cookiecutter.project_slug}}/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $(VENV)/pyvenv.cfg: pyproject.toml
6666
lint: $(VENV)/pyvenv.cfg
6767
uv run ruff format --check && \
6868
uv run ruff check && \
69-
uv run ty check
69+
uv run ty check src
7070

7171
{%- if cookiecutter.docstring_coverage %}
7272
uv run interrogate -c pyproject.toml .
@@ -80,7 +80,7 @@ check: lint test
8080

8181
.PHONY: typecheck ty
8282
typecheck ty: $(VENV)/pyvenv.cfg
83-
uv run ty check --strict
83+
uv run ty check src
8484

8585
.PHONY: reformat fix
8686
reformat fix:

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ lint = [
4646
# NOTE: ruff is under active development, so we pin conservatively here
4747
# and let Dependabot periodically perform this update.
4848
"ruff ~= 0.6.2",
49-
"ty >= 0.1.0",
49+
"ty >= 0.0.1a16",
5050
"types-html5lib",
5151
"types-requests",
5252
"types-toml",
@@ -74,7 +74,6 @@ omit = ["{{ cookiecutter.__project_src_path }}/_cli.py"]
7474
[tool.ty]
7575
# Astral's experimental type checker
7676
search_path = ["src"]
77-
strict = true
7877

7978
# Ruff configuration is in ruff.toml
8079

0 commit comments

Comments
 (0)