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
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/crate-ci/typos
rev: bbaefadf97b0ec5fdc942684b647f1a6ab250274 # v1.46.0
hooks:
- id: typos
args: [--force-exclude]

- repo: local
hooks:
- id: local-ruff-check
Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,21 @@ Use 'typer._completion_shared._get_shell_name' instead of using \

[tool.ty.terminal]
error-on-warning = true

[tool.typos.files]
extend-exclude = [
"coverage/",
"dist/",
"docs/img/",
"docs/release-notes.md",
"htmlcov/",
"site/",
"site_build/",
"uv.lock",
]

[tool.typos.default.extend-identifiers]
alls = "alls"

[tool.typos.default.extend-words]
Ines = "Ines"
2 changes: 1 addition & 1 deletion typer/.agents/skills/typer/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def main(name: str = typer.Argument(default="World")):
print(f"Hello {name}")
```

Similarly, the old style could use ellipsis (...) to explicitely mark an argument as required.
Similarly, the old style could use ellipsis (...) to explicitly mark an argument as required.

```python
# DO NOT DO THIS: old style. Use Annotated without a default value instead.
Expand Down
Loading