Hatch build hook plugin for Mypyc
Project description
hatch-mypyc
CI/CD | |
Package | |
Meta |
This provides a build hook plugin for Hatch that compiles code with Mypyc.
Table of Contents
Configuration
The build hook plugin name is mypyc
.
-
pyproject.toml
[tool.hatch.build.targets.wheel.hooks.mypyc] dependencies = ["hatch-mypyc"]
-
hatch.toml
[build.targets.wheel.hooks.mypyc] dependencies = ["hatch-mypyc"]
File selection
Every entry represents a Git-style glob pattern.
Include
This option is required.
[build.targets.wheel.hooks.mypyc]
include = ["/pkg"]
Exclude
[build.targets.wheel.hooks.mypyc]
exclude = ["__main__.py"]
Mypy arguments
You can specify extra Mypy arguments with the mypy-args
option.
[build.targets.wheel.hooks.mypyc]
mypy-args = [
"--disallow-untyped-defs",
]
Options
You can specify options
that affect the behavior of mypycify.
[build.targets.wheel.hooks.mypyc.options]
opt_level = "3"
Note that the target_dir
option is used internally and therefore has no effect.
License
hatch-mypyc
is distributed under the terms of the MIT license.
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
hatch_mypyc-0.1.tar.gz
(9.8 kB
view hashes)
Built Distribution
Close
Hashes for hatch_mypyc-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37c6a7f1ff1ac83bf606c0fb3b7edfd1fe68d22c1ab4d53b0251cc89f335a9fd |
|
MD5 | a0588711cd882194c0f360dccc6feeb2 |
|
BLAKE2b-256 | a0f9259ec68aef0be4a72b0160bf4cfe147442bb8dd8ca4003d084a6c74fe091 |