Type-check batou deployments
Project description
batou-type
Type-check batou deployment components against batou stubs.
Finds all components/**/*.py files in the current directory and runs type checkers on them.
Usage
batou-type setup # configure project for IDE type checking (run once)
batou-type check # ty (default)
batou-type check -c mypy # mypy only
batou-type check -c ty -c mypy # both checkers
batou-type check --fix # fix in-place
batou-type check --diff # preview fixes as unified diff
batou-type check --fix --virtual # fix with tempdir safety check
After batou-type setup, ty check components/ produces the same diagnostics — enabling zero-config IDE integration via ty LSP.
Exit code 0 — no errors (or no component files found). Exit code 1 — at least one type error detected.
Autofix
Automatically fix missing batou_ext.* imports and self._ dereferencing. See usage docs for flags and examples.
Migration Testing
Install a newer batou-type in an existing deployment — type errors reveal API changes before upgrading batou. See usage docs.
What It Checks
Discovers every components/**/*.py file and runs type checkers on them. Virtual environments (.venv/, appenv) are added to the search path automatically. If no component files are found, exits cleanly.
Full documentation: docs/user/usage.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file batou_type-2.8.0.dev0.tar.gz.
File metadata
- Download URL: batou_type-2.8.0.dev0.tar.gz
- Upload date:
- Size: 41.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe4e43497fcc87c64c1293005b071141b0b085ec3d5997ef7e327acb4246fe27
|
|
| MD5 |
003d844fe2dd7c6283f878a686e38c78
|
|
| BLAKE2b-256 |
15d164ae2043f6ddd6832d0c08c1f98d4cfbc16db514ef7562985fa302be4dcf
|
File details
Details for the file batou_type-2.8.0.dev0-py3-none-any.whl.
File metadata
- Download URL: batou_type-2.8.0.dev0-py3-none-any.whl
- Upload date:
- Size: 75.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b049043a144719b4ca281e261ba91a2a94b58459b2d008d5b21b9ebcd770d819
|
|
| MD5 |
4a02e0d62eeb7b6e4f6b14147538a1c6
|
|
| BLAKE2b-256 |
cb107882236cb8a42efc7c67bc356a2216bb3a58c83ed493836188b986b0ba61
|