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
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,25 @@ jobs:
with:
pre-commit-source: "--group pre-commit"

ty:
name: Type check
runs-on: ubuntu-24.04
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v6.0.2

- name: Set up Python
uses: actions/setup-python@v6.2.0
with:
python-version: "3.13"

- name: Install Tox
run: python -m pip install --group tox-uv

- name: Type check
run: tox -e ty

towncrier:
name: Check towncrier
uses: beeware/.github/.github/workflows/towncrier-run.yml@main
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ If you would like a full introduction to using Briefcase, try the [BeeWare tutor

The BeeWare project would not be possible without the generous support of our financial members:

[![Anaconda logo](https://beeware.org/community/members/anaconda/anaconda-large.png)](https://anaconda.com/)
[![Anaconda logo](https://beeware.org/images/anaconda-dark.png)](https://anaconda.com/)

Anaconda Inc. - Advancing AI through open source.

Expand Down
1 change: 1 addition & 0 deletions changes/2710.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
``ty`` was added as a non-blocking type checker in CI.
2 changes: 1 addition & 1 deletion docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Briefcase is part of the [BeeWare suite](https://beeware.org). You can talk to t

### Code of Conduct

The BeeWare community has a strict [Code of Conduct](https://beeware.org/community/behavior/code-of-conduct/). All users and developers are expected to adhere to this code.
The BeeWare community has a strict [Code of Conduct](https://beeware.org/community/code-of-conduct/). All users and developers are expected to adhere to this code.

If you have any concerns about this code of conduct, or you wish to report a violation of this code, please contact the project founder [Russell Keith-Magee](mailto:russell@keith-magee.com).

Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ tox-uv = [
"tox-uv == 1.29.0",
]

ty = [
"ty == 0.0.18",
]

dev = [
{include-group = "pre-commit"},
{include-group = "setuptools-scm"},
Expand Down Expand Up @@ -336,6 +340,12 @@ type = [
{ directory = "misc", name = "Misc", showcontent = false },
]

[tool.ty.rules]
unresolved-attribute = "warn"
invalid-argument-type = "warn"
invalid-return-type = "warn"
unresolved-import = "ignore"

[tool.codespell]
skip = '.git,*.pdf,*.svg'
# the way to make case-sensitive skips of words etc
Expand Down
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ commands =
python -m coverage combine
python -m coverage report --fail-under=100

[testenv:ty]
skip_install = True
dependency_groups = ty
commands = ty check src/briefcase/
ignore_outcome = True

[testenv:towncrier{,-check}]
skip_install = True
dependency_groups = towncrier
Expand Down