Let tools know this library supports type hints
https://typing.python.org/en/latest/spec/distributing.html#packaging-type-information https://typing.python.org/en/latest/guides/libraries.html#marking-a-package-as-providing-type-information It turns out we need to add a py.typed file so that tools will know this library has type hints. As far as I can tell we don't need to do anything special to have our build tool (Hatch) include this file when it builds and packages the library. Signed-off-by: Nic Cope <nicc@rk0n.org>
This commit is contained in:
parent
325c37d344
commit
f295c0144b
|
@ -14,6 +14,7 @@ classifiers = [
|
|||
"Development Status :: 4 - Beta",
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Typing :: Typed",
|
||||
]
|
||||
|
||||
dependencies = [
|
||||
|
@ -63,7 +64,7 @@ packages = ["crossplane"]
|
|||
# This special environment is used by hatch fmt.
|
||||
[tool.hatch.envs.hatch-static-analysis]
|
||||
dependencies = ["ruff==0.11.2"]
|
||||
config-path = "none" # Disable Hatch's default Ruff config.
|
||||
config-path = "none" # Disable Hatch's default Ruff config.
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py311"
|
||||
|
|
Loading…
Reference in New Issue