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
By default, the standard file selection options will be used. You can override this behavior with the include
/exclude
options.
[build.targets.wheel.hooks.mypyc]
include = ["/pkg"]
exclude = ["__main__.py"]
At least one inclusion pattern must be provided overall.
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:
- if
separate
is set tofalse
(the default), then you'll need to either set dev-mode-dirs for builds or disable dev-mode for environments - 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.4.tar.gz
(11.4 kB
view hashes)
Built Distribution
Close
Hashes for hatch_mypyc-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fa7d9a2a9f87e25c87ea51fa605acf082e86818e218fd7d78014c1e4aae57ad |
|
MD5 | d23b8f5dd6c80d19a986de9d9e235fb1 |
|
BLAKE2b-256 | fa2d4f446ad50cd747785a32f2487671112ed4017fe6759dfd9acf3956ca8d87 |